Тёмный

SQL: UNION ALL, ROLLUP and GROUPING SETS for sub-totals 

Flex Your Data
Подписаться 2,4 тыс.
Просмотров 897
50% 1

Walkthrough of a case study of a building a SQL report with very specific requirements.
We look at how to add sub-totals to a query using UNION ALL and talk about why this is not usually a good idea.
We then look at how to achieve the same result with the ROLLUP function.
Finally, we talk briefly about getting to the same place with GROUPING SETS.
#sql #coding #rollup #groupingsets #unionall

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@Roger-vw2yu
@Roger-vw2yu 2 месяца назад
I did it in Excel and I constantly asked myself how do I do the same in SQL?, and you solved it very easily, thanks ... this video is GOLD
@nathanbrick7978
@nathanbrick7978 Год назад
Very good content. I was running into that exact problem. THANK YOU!
@MatadorSoftware
@MatadorSoftware 2 года назад
Awesome work, I love a real world use case!
@flexyourdata
@flexyourdata 2 года назад
Thanks!
Далее
SQL: Use GitHub Copilot to write SQL Automatically!
4:51
НЕ БУДИТЕ КОТЯТ#cat
00:21
Просмотров 1 млн
Песня РАСПУТИН на русском!🔥
00:56
SubTotals with SQL using ROLLUP
7:06
Просмотров 10 тыс.
Oracle Pivot with group total computation
13:41
Просмотров 23 тыс.
Grouping Sets in SQL Server
9:36
Просмотров 105 тыс.
7 Years of Software Engineering Advice in 18 Minutes
18:32
Microservices with Databases can be challenging...
20:52
НЕ БУДИТЕ КОТЯТ#cat
00:21
Просмотров 1 млн