Rollup, Cube and Grouping Sets in SQL | Advanced SQL Tutorial | Beyond Group By
HTML-код
- Опубликовано: 16 окт 2024
- In this video we will understand what are Rollup, Cube and Grouping Sets in SQL. Why we need it in a very simple way.
script:
Create table orders
(
Id int primary key identity,
Continent nvarchar(50),
Country nvarchar(50),
City nvarchar(50),
amount int
);
Insert into orders values('Asia','India','Bangalore',1000)
Insert into orders values('Asia','India','Chennai',2000)
Insert into orders values('Asia','Japan','Tokyo',4000)
Insert into orders values('Asia','Japan','Hiroshima',5000)
Insert into orders values('Europe','United Kingdom','London',1000)
Insert into orders values('Europe','United Kingdom','Manchester',2000)
Insert into orders values('Europe','France','Paris',4000)
Insert into orders values('Europe','France','Cannes',5000)
;
Zero to hero(Advance) SQL Aggregation:
• All About SQL Aggregat...
Most Asked Join Based Interview Question:
• Most Asked SQL JOIN ba...
Solving 4 Trick SQL problems:
• Solving 4 Tricky SQL P...
Data Analyst Spotify Case Study:
• Data Analyst Spotify C...
Top 10 SQL interview Questions:
• Top 10 SQL interview Q...
Interview Question based on FULL OUTER JOIN:
• SQL Interview Question...
Playlist to master SQL :
• Complex SQL Questions ...
Rank, Dense_Rank and Row_Number:
• RANK, DENSE_RANK, ROW_...
#sql #dataengineer
Is sound quality better? I am using a mic for the first time :)
Yes, we could also hear mixer in background
Perfect it is
Yes perfect
Crystal clear. 😉
You don't need mic Ankit. The content is anyways top notch to keep us waiting for the videos and watch them , ending up learning something new and important to impress the interviewers 😅
Your explaination is the best I seen till date from schooling to now, best teacher ever Sir hatsoff
Great explanation Ankit!
I swear nobody in this RUclips platform can explain like you did....your RUclips channel made me kind of pro in SQL.
Brilliant video! So clear. I struggled to grasp these concepts with both my uni lectures and the prescribed textbook. Will definitely be returning for more of your content.
Glad it was helpful!
Such an excellent video Ankit! Keep up the great work!
Your way of explanation is next level Bro
Thank you so much
You are most welcome
Superb explanation
Ankit these are the contents i have ben waiting for , this is top notch , need more content on advance SQL and data engineering
As usual great content. One should only learn what you do, and One will be as great as you are
Really brilliant all key points where addressed
nice really helpful
Yup it clear all my concepts regarding roll up
Thanks for such beautiful videos. Always grateful to you
My pleasure 😊
Really great
This is beautiful Ankit! Thank you for sharing! I have request, could you please make a video on how to find a grain in any given fact table? Specially sometimes when we are not equipped with business knowledge, how do we find the grain in an unknown fact table? It will be very valuable. Thanks in advance!
Sure
Thanks sir for teaching this kind of concepts 🎉
very good explanation.. keep posting an amazing content 👌👌🎉🎉
Thanks a lot 😊
Awesome content!
Hi Ankit, thx for posting these videos, your content is great. Can you plz make videos on advanced concepts like materialized views and indexing?
Yes, sure
Amazing ❤
clear explanatation
Clear explanation
Brilliant 👍
thanks for this scenario 😊
Voices is best 👌
nice
❤❤very good sir!! Please also upload the insert script for the pervious video on business intelligence where tou show ytd etc
Uploaded . Check description
Yes it is better
Bohot mast
Thank you 😊
you are awesome !
just a question sir... are all these topics covered under your SQL zero to hero course ?
Covered here in this video 😊
quick Q),what type of syntax that you used in 2:37 (select null country,null city etc..) This is the first time i saw a syntax like this .Can you please further explain on this.
Just hard coding null value to columns..like.null as country
Hello Ankit,
I want to enroll for the recorded session course of SQL. Can you please share the link of the same..
www.namastesql.com/courses/SQL-For-Analytics-6301f405e4b0238f71788354
will this feature available across all the databases ?
or restricted to SQL SERVER ?
Mostly all
are these commands supported in MySQL??
Mostly yes
Please tell me what all RDBMS supports these functions. I am interested in Oracle and SQL server
00:00 - Rollup
05:30 - Cube
07:16 - Grouping Sets
nice