Rollup, Cube and Grouping Sets in SQL | Advanced SQL Tutorial | Beyond Group By

  Рет қаралды 15,683

Ankit Bansal

Ankit Bansal

4 ай бұрын

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

Пікірлер: 52
@ankitbansal6
@ankitbansal6 4 ай бұрын
Is sound quality better? I am using a mic for the first time :)
@sathwikdhanya5400
@sathwikdhanya5400 4 ай бұрын
Yes, we could also hear mixer in background
@hritikapal683
@hritikapal683 4 ай бұрын
Perfect it is
@atikhsohail3461
@atikhsohail3461 4 ай бұрын
Yes perfect
@rajatmaurya6401
@rajatmaurya6401 4 ай бұрын
Crystal clear. 😉
@hamidabano2075
@hamidabano2075 4 ай бұрын
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 😅
@nipunshetty9640
@nipunshetty9640 4 ай бұрын
Your explaination is the best I seen till date from schooling to now, best teacher ever Sir hatsoff
@dasoumya
@dasoumya 3 ай бұрын
Great explanation Ankit! I swear nobody in this KZfaq platform can explain like you did....your KZfaq channel made me kind of pro in SQL.
@kaamgaming6124
@kaamgaming6124 Ай бұрын
nice really helpful
@subhajitdey6806
@subhajitdey6806 4 ай бұрын
Ankit these are the contents i have ben waiting for , this is top notch , need more content on advance SQL and data engineering
@dfkgjdflkg
@dfkgjdflkg 4 ай бұрын
As usual great content. One should only learn what you do, and One will be as great as you are
@zainaltaf4935
@zainaltaf4935 3 ай бұрын
Yup it clear all my concepts regarding roll up
@sanketannadate4407
@sanketannadate4407 4 ай бұрын
Really brilliant all key points where addressed
@devendrabarasker4987
@devendrabarasker4987 4 ай бұрын
Thanks sir for teaching this kind of concepts 🎉
@srinubathina7191
@srinubathina7191 4 ай бұрын
Your way of explanation is next level Bro Thank you so much
@ankitbansal6
@ankitbansal6 4 ай бұрын
You are most welcome
@sakinasaifee3118
@sakinasaifee3118 3 ай бұрын
Awesome content!
@Vonneuman8676
@Vonneuman8676 4 ай бұрын
Thanks for such beautiful videos. Always grateful to you
@ankitbansal6
@ankitbansal6 4 ай бұрын
My pleasure 😊
@saiswaroop3570
@saiswaroop3570 4 ай бұрын
Clear explanation
@JatinC_Official
@JatinC_Official 4 ай бұрын
Amazing ❤
@santoshkiran5858
@santoshkiran5858 4 ай бұрын
Brilliant 👍
@sagargudla1362
@sagargudla1362 4 ай бұрын
thanks for this scenario 😊
@vinayanayak1228
@vinayanayak1228 4 ай бұрын
you are awesome !
@yashshrivastava280
@yashshrivastava280 7 күн бұрын
nice
@ramakumarguntamadugu1299
@ramakumarguntamadugu1299 4 ай бұрын
very good explanation.. keep posting an amazing content 👌👌🎉🎉
@ankitbansal6
@ankitbansal6 4 ай бұрын
Thanks a lot 😊
@pateldh23
@pateldh23 4 ай бұрын
Voices is best 👌
@basireddymadhusudhanreddy7990
@basireddymadhusudhanreddy7990 3 ай бұрын
clear explanatation
@ayushi_patra
@ayushi_patra 4 ай бұрын
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!
@ankitbansal6
@ankitbansal6 4 ай бұрын
Sure
@sarvesh714
@sarvesh714 2 ай бұрын
Hi Ankit, thx for posting these videos, your content is great. Can you plz make videos on advanced concepts like materialized views and indexing?
@ankitbansal6
@ankitbansal6 2 ай бұрын
Yes, sure
@raagpathy
@raagpathy 4 ай бұрын
Yes it is better Bohot mast
@ankitbansal6
@ankitbansal6 4 ай бұрын
Thank you 😊
@ashishyadav-mf4hp
@ashishyadav-mf4hp 2 ай бұрын
00:00 - Rollup 05:30 - Cube 07:16 - Grouping Sets
@gazart8557
@gazart8557 4 ай бұрын
❤❤very good sir!! Please also upload the insert script for the pervious video on business intelligence where tou show ytd etc
@ankitbansal6
@ankitbansal6 4 ай бұрын
Uploaded . Check description
@OneNI83
@OneNI83 4 ай бұрын
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.
@ankitbansal6
@ankitbansal6 4 ай бұрын
Just hard coding null value to columns..like.null as country
@soumyabiswal6324
@soumyabiswal6324 4 ай бұрын
just a question sir... are all these topics covered under your SQL zero to hero course ?
@ankitbansal6
@ankitbansal6 4 ай бұрын
Covered here in this video 😊
@sureshraina321
@sureshraina321 4 ай бұрын
will this feature available across all the databases ? or restricted to SQL SERVER ?
@ankitbansal6
@ankitbansal6 4 ай бұрын
Mostly all
@nikhilpatil9582
@nikhilpatil9582 4 ай бұрын
Hello Ankit, I want to enroll for the recorded session course of SQL. Can you please share the link of the same..
@ankitbansal6
@ankitbansal6 4 ай бұрын
www.namastesql.com/courses/SQL-For-Analytics-6301f405e4b0238f71788354
@ashutoshkumar5721
@ashutoshkumar5721 3 ай бұрын
are these commands supported in MySQL??
@ankitbansal6
@ankitbansal6 3 ай бұрын
Mostly yes
@guyzterrorguyz1
@guyzterrorguyz1 3 ай бұрын
Please tell me what all RDBMS supports these functions. I am interested in Oracle and SQL server
@ajay_jangra
@ajay_jangra 4 ай бұрын
nice
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 115 МЛН
Хотите поиграть в такую?😄
00:16
МЯТНАЯ ФАНТА
Рет қаралды 2,7 МЛН
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 11 МЛН
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Anton Putra
Рет қаралды 120 М.
PWC Data Analyst Interview | SQL Intermediate Question 11
9:46
SubTotals with SQL using ROLLUP
7:06
James Oliver
Рет қаралды 10 М.
Working with Rollups and Cubes in PostgreSQL | SQL Basics
11:42
Job Ready Programmer
Рет қаралды 67 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 115 МЛН