SQL Server - Aggregation WITH ROLLUP options

Pubblicato il: 23 agosto 2019
sul canale di: 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  


In questa pagina del sito puoi guardare il video online SQL Server - Aggregation WITH ROLLUP options della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Mukesh Singh 23 agosto 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 873 volte e gli è piaciuto 7 spettatori. Buona visione!