SELECT SalesQuota, SUM(SalesYTD) AS TotalSalesYTD FROM AdventureWorks.Sales.SalesPerson GROUP BY SalesQuota;
SELECT SalesQuota, SUM(SalesYTD) AS TotalSalesYTD FROM AdventureWorks.Sales.SalesPerson GROUP BY ROLLUP(SalesQuota);
SELECT SalesQuota, SUM(SalesYTD) AS TotalSalesYTD FROM AdventureWorks.Sales.SalesPerson GROUP BY GROUPING SETS(ROLLUP (SalesQuota));
