SQL Amazing Trick | Calculate Yearly, Quarterly, Monthly totals in a single SQL Query |Grouping Sets

Поделиться
HTML-код
  • Опубликовано: 8 авг 2022
  • In this tutorial, we learn to use Grouping Sets in SQL to calculate aggregations at different levels by taking the example -
    How to calculate Yearly, Quarterly, Monthly totals in a single SQL Query?
    All DDL and SQL statements can be found here-
    know-star.blogspot.com/2022/0...
    How to install SQL Server for practice?
    • How to install SQL Ser...
    Check out the complete list of SQL Query Interview Questions -
    • SQL Query Interview Qu...
    Best Data Science / Analytics / SQL courses
    Learn SQL Basics for Data Science Specialization
    imp.i384100.net/qnXYk5
    Beginners to Python Programming
    skillshare.eqcm.net/GjMakm
    Data Science and Business Analytics with Python
    skillshare.eqcm.net/JrM1Aq
    Get 40% OFF of Skillshare with code FLASH40 - October 2022
    skillshare.eqcm.net/c/3299742...
    Data Science Fundamentals with Python and SQL Specialization
    imp.i384100.net/mgVYre
    Python for Everybody Specialization
    imp.i384100.net/DVz7Aj
    Google Data Analytics Professional Certificate
    imp.i384100.net/OR37oQ
    Coursera Plus - Data Science Career Skills
    imp.i384100.net/c/3299742/132...
    Please do not forget to like, subscribe and share.
    For enrolling and enquiries, please contact us at
    Website - knowstar.org/
    Instagram - / learn.knowstar
    Facebook - / knowstartrainings
    Linkedin - www.linkedin.com/company/know...
    Email - learn@knowstar.org

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

  • @kristyowens2284
    @kristyowens2284 Год назад +5

    Another amazing topic. Thank you for posting relevant content.

  • @amukelaniebenezer406
    @amukelaniebenezer406 Год назад

    Thanks for sharing

  • @hv0032113
    @hv0032113 Год назад +1

    I learnt a new thing. Was not aware of Grouping Sets. Thank you for sharing.

  • @rohanthakur6136
    @rohanthakur6136 Год назад +1

    Real life scenario examples. Thank you for the examples.

  • @capitantomate6938
    @capitantomate6938 Год назад

    Excellent! Thanks for sharing!! 😀

  • @diydecor2653
    @diydecor2653 Год назад +2

    Thank you. These topics are really helpful for us.

  • @djjiang3718
    @djjiang3718 Год назад

    Good job! another good share! Thank you young lady for your hard work!👏👏👏

  • @dimpyrathore818
    @dimpyrathore818 Год назад

    Very well explained. Amazing tutorial series. Very helpful to build logic and frame SQL queries.

  • @mainlykanchan8740
    @mainlykanchan8740 Год назад

    Your videos help me a lot to understand queries and and process of solving . Thank you so much 🙏🏿🙏🏿🙏🏿

  • @TheWANO327
    @TheWANO327 Год назад

    THANK you great explanation ,
    I have a question ?can, add another column to this same table where every row is total month next to the accumulate column

  • @dorayoung5149
    @dorayoung5149 4 месяца назад

    Thank you for this video

  • @shreekantgosavi4726
    @shreekantgosavi4726 Год назад

    This is really insightful thanks a lot

  • @zeeshanazeem5212
    @zeeshanazeem5212 Год назад

    Lovin it.

  • @sankalpasarkar3540
    @sankalpasarkar3540 Год назад

    Excellent example

  • @TheVaibhavdang
    @TheVaibhavdang Год назад

    Can't we use datepart function for the same excercise?

  • @rk-ej9ep
    @rk-ej9ep Год назад

    Super..

  • @erikaa2718
    @erikaa2718 Год назад

    is datepart working for Weekly as well?

  • @shekhark1139
    @shekhark1139 10 месяцев назад

    Very informative, expecting script for the practise

  • @hasanmougharbel8030
    @hasanmougharbel8030 Год назад +1

    Hey there, here we meet again.
    I have a general question as a new sql learner.
    How to set up adventure works on sql sever?
    Thanks for taking time for my enquiry.
    God bless you.

    • @LearnatKnowstar
      @LearnatKnowstar  Год назад +1

      Please find here the tutorial on installing SQL Server and Adventure Works DB.
      ruclips.net/video/ncj0EDzy_rw/видео.html

  • @saktipadamukherjee455
    @saktipadamukherjee455 4 месяца назад

    Please give the datasets in description

  • @chintu2691994
    @chintu2691994 Год назад +1

    Good example and great explanation.... Will this work in SQL server 2008 (Updates are in progress)

    • @LearnatKnowstar
      @LearnatKnowstar  Год назад +1

      They should work. They were introduced as a new feature in SQL Server 2008.

  • @starkwedder9787
    @starkwedder9787 Год назад

    is there a way to do the same thing in Sqlite ? Thank you

    • @LearnatKnowstar
      @LearnatKnowstar  Год назад

      SQLLite has limited functions - so this might not work there. There are other similar functions - CUBE and ROLLUP. You might give those a try in SQLLite.

  • @vinodkumar-yz1bg
    @vinodkumar-yz1bg Год назад

    Need daily and monthly

  • @lifeexperiment4119
    @lifeexperiment4119 Год назад

    I done know I get invalid month or year?

  • @TheVaibhavdang
    @TheVaibhavdang Год назад +1

    Please share the dataset link or file

    • @LearnatKnowstar
      @LearnatKnowstar  Год назад

      Please find the link here -
      know-star.blogspot.com/2022/08/sql-how-to-calculate-yearly-quarterly.html

  • @sagarmagdum7407
    @sagarmagdum7407 Год назад

    Make understand us CTE Function in detail videos real time example

  • @lax976
    @lax976 2 месяца назад

    Union is a expensive operation, not good approach