Answers for "sql grouping function"

SQL
-1

grouping sql

SELECT SalesQuota, SUM(SalesYTD) 'TotalSalesYTD', GROUPING(SalesQuota) AS 'Grouping'  
FROM Sales.SalesPerson  
GROUP BY SalesQuota WITH ROLLUP;  
GO
Posted by: Guest on January-23-2021
-2

group functions in sql

Multiple Row Functions (Group functions, Aggregate functions):
(Count, MIN , MAX, AVG, SUM)
will run for multiple rows and return a single value
Posted by: Guest on January-28-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language