SQL Server - Aggregation WITH ROLLUP options

Publié le: 23 août 2019
sur la chaîne: 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  


Sur cette page du site, vous pouvez voir la vidéo en ligne SQL Server - Aggregation WITH ROLLUP options durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Mukesh Singh 23 août 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 873 fois et il a aimé 7 téléspectateurs. Bon visionnage!