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

Комментарии • 58

  • @ankitbansal6
    @ankitbansal6  7 месяцев назад +21

    Is sound quality better? I am using a mic for the first time :)

    • @sathwikdhanya5400
      @sathwikdhanya5400 7 месяцев назад +1

      Yes, we could also hear mixer in background

    • @hritikapal683
      @hritikapal683 7 месяцев назад

      Perfect it is

    • @atikhsohail3461
      @atikhsohail3461 7 месяцев назад

      Yes perfect

    • @rajatmaurya6401
      @rajatmaurya6401 7 месяцев назад

      Crystal clear. 😉

    • @hamidabano2075
      @hamidabano2075 7 месяцев назад

      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 7 месяцев назад +4

    Your explaination is the best I seen till date from schooling to now, best teacher ever Sir hatsoff

  • @dasoumya
    @dasoumya 6 месяцев назад +1

    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.

  • @LachlanNoone
    @LachlanNoone 15 дней назад

    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.

  • @rosieshiels7500
    @rosieshiels7500 20 дней назад

    Such an excellent video Ankit! Keep up the great work!

  • @srinubathina7191
    @srinubathina7191 7 месяцев назад +1

    Your way of explanation is next level Bro
    Thank you so much

  • @raviagrawal2862
    @raviagrawal2862 20 дней назад +1

    Superb explanation

  • @subhajitdey6806
    @subhajitdey6806 7 месяцев назад

    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 7 месяцев назад

    As usual great content. One should only learn what you do, and One will be as great as you are

  • @sanketannadate4407
    @sanketannadate4407 7 месяцев назад

    Really brilliant all key points where addressed

  • @kaamgaming6124
    @kaamgaming6124 4 месяца назад +1

    nice really helpful

  • @zainaltaf4935
    @zainaltaf4935 6 месяцев назад

    Yup it clear all my concepts regarding roll up

  • @Vonneuman8676
    @Vonneuman8676 7 месяцев назад

    Thanks for such beautiful videos. Always grateful to you

  • @Hkumar_new
    @Hkumar_new 5 дней назад

    Really great

  • @ayushi_patra
    @ayushi_patra 7 месяцев назад

    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!

  • @devendrabarasker4987
    @devendrabarasker4987 7 месяцев назад

    Thanks sir for teaching this kind of concepts 🎉

  • @ramakumarguntamadugu1299
    @ramakumarguntamadugu1299 7 месяцев назад

    very good explanation.. keep posting an amazing content 👌👌🎉🎉

  • @sakinasaifee3118
    @sakinasaifee3118 6 месяцев назад

    Awesome content!

  • @sarvesh714
    @sarvesh714 5 месяцев назад

    Hi Ankit, thx for posting these videos, your content is great. Can you plz make videos on advanced concepts like materialized views and indexing?

  • @JatinC_Official
    @JatinC_Official 7 месяцев назад

    Amazing ❤

  • @basireddymadhusudhanreddy7990
    @basireddymadhusudhanreddy7990 7 месяцев назад

    clear explanatation

  • @saiswaroop3570
    @saiswaroop3570 7 месяцев назад

    Clear explanation

  • @santoshkiran5858
    @santoshkiran5858 7 месяцев назад

    Brilliant 👍

  • @sagargudla1362
    @sagargudla1362 7 месяцев назад

    thanks for this scenario 😊

  • @pateldh23
    @pateldh23 7 месяцев назад

    Voices is best 👌

  • @yashshrivastava280
    @yashshrivastava280 3 месяца назад

    nice

  • @gazart8557
    @gazart8557 7 месяцев назад

    ❤❤very good sir!! Please also upload the insert script for the pervious video on business intelligence where tou show ytd etc

    • @ankitbansal6
      @ankitbansal6  7 месяцев назад

      Uploaded . Check description

  • @raagpathy
    @raagpathy 7 месяцев назад

    Yes it is better
    Bohot mast

  • @vinayanayak1228
    @vinayanayak1228 7 месяцев назад

    you are awesome !

  • @soumyabiswal6324
    @soumyabiswal6324 7 месяцев назад

    just a question sir... are all these topics covered under your SQL zero to hero course ?

    • @ankitbansal6
      @ankitbansal6  7 месяцев назад

      Covered here in this video 😊

  • @OneNI83
    @OneNI83 7 месяцев назад

    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  7 месяцев назад +1

      Just hard coding null value to columns..like.null as country

  • @nikhilpatil9582
    @nikhilpatil9582 7 месяцев назад

    Hello Ankit,
    I want to enroll for the recorded session course of SQL. Can you please share the link of the same..

    • @ankitbansal6
      @ankitbansal6  7 месяцев назад

      www.namastesql.com/courses/SQL-For-Analytics-6301f405e4b0238f71788354

  • @sureshraina321
    @sureshraina321 7 месяцев назад

    will this feature available across all the databases ?
    or restricted to SQL SERVER ?

  • @ashutoshkumar5721
    @ashutoshkumar5721 7 месяцев назад

    are these commands supported in MySQL??

    • @ankitbansal6
      @ankitbansal6  7 месяцев назад

      Mostly yes

    • @guyzterrorguyz1
      @guyzterrorguyz1 6 месяцев назад

      Please tell me what all RDBMS supports these functions. I am interested in Oracle and SQL server

  • @ashishyadav-mf4hp
    @ashishyadav-mf4hp 5 месяцев назад

    00:00 - Rollup
    05:30 - Cube
    07:16 - Grouping Sets

  • @ajay_jangra
    @ajay_jangra 7 месяцев назад

    nice