SQL Server - Aggregation WITH ROLLUP options

Published: 23 August 2019
on channel: Mukesh Singh
873
7

In this tutorial, you will learn how to use the SQL ROLLUP to generate multiple grouping sets

The ROLLUP is an extension of the GROUP BY clause. The ROLLUP option allows you to include extra rows that represent the subtotals, which are commonly referred to as super-aggregate rows, along with the grand total row.
It is useful-
A. By using the ROLLUP option, you can use a single query to generate multiple grouping sets.
B. ROLLUP generates a result set that shows aggregates for a hierarchy of values in the selected columns.
C. By using ROLLUP, you can find total for corresponding to one or more columns

Examples
1. SQL ROLLUP with single column
2. SQL ROLLUP with multiple columns
3. SQL ROLLUP with partial rollup

To Learn more, please visit our blog at -
http://www.sql-datatools.com
To Learn more, please visit our YouTube channel at -
   / sql-datatools  
To Learn more, please visit our Instagram account at -
  / asp.mukesh  
To Learn more, please visit our twitter account at -
  / macxima  


On this page of the site you can watch the video online SQL Server - Aggregation WITH ROLLUP options with a duration of hours minute second in good quality, which was uploaded by the user Mukesh Singh 23 August 2019, share the link with friends and acquaintances, this video has already been watched 873 times on youtube and it was liked by 7 viewers. Enjoy your viewing!