sql >> Base de Datos >  >> RDS >> Oracle

Cómo agrupar por 1 en SQL Server

Agrupar por 1 no es compatible con SQL Server pero puede poner el mismo código así:

select SUM(PRICE) as Total 
from MyTable
having count(PRICE) > 0