Working with Rollups and Cubes in PostgreSQL | SQL Basics

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • This video is from the course "Master SQL for Data Science"
    In this lesson, you'll learn more about working with Rollups and Cubes in PostgreSQL.
    =========================================
    ➡️ Get the complete course today from Job Ready Programmer using the link below:
    www.jobreadypr...
    =========================================
    ➡️ Learn MORE:
    - Access all of my software development courses using the discount below: www.jobreadypr...
    - Email me if you have questions: info@jobreadyprogrammer.com
    - Become Job Ready with our NEW Programming Guide (PDF): pages.jobready...
    =========================================
    ➡️ About the course: Master SQL for Data Science
    This course will turn you into a SQL query wizard. You'll learn the skills you need to extract critical insight from data sitting in a database. There are over 100 puzzles scattered throughout the course with in-depth solutions providing plenty of opportunity for you to practice. After completing the course and all of it's assignments, I promise you, you'll never be afraid to look at a large SQL query again.
    Just like my other courses, I follow the no-student-left behind principle; which means that I start from the very basics. You do not need any prerequisites to take this course. We move step by step into more advanced topics as we delve into the world of advanced querying techniques using subqueries, aggregations, joins, rollups and cubes, window functions, transposing & ranking data and using conditional expressions in very interesting ways.
    ➡️ Below are some of the topics you'll learn:
    - What is a Database, Installing Postgres, Creating Tables
    - SELECT Statement, WHERE Clause, AND & OR
    - Filtering Operators, ORDER BY, LIMIT, DISTINCT
    - Renaming Columns, Functions, GROUP BY & HAVING Clauses
    - Aggregation Queries, Subqueries, CASE Clause
    - Correlated Subqueries,
    - Table Joins, INNER and OUTER Joins,
    - UNION, UNION ALL and EXCEPT Clauses
    - Window Functions for Analytics
    + over 100 puzzles distributed throughout the course
    =========================================
    ➡️ Connect with me:
    LinkedIn: / imtiaz-ahmad-80117324
    Twitter: / jobreadyproinc
    =========================================
    ➡️ Job Ready Programmer Socials:
    Job Ready Programmer Courses: www.jobreadypr...
    LinkedIn Page: / jobreadyprogrammer
    Discord Community: / discord
    Facebook Page: / jobreadyprogrammer
    Instagram: / programmerready
    JRP Blog: www.jobreadypr...
    JRP Weekly Newsletter: pages.jobready...
    Linktree: linktr.ee/jobr...
    =========================================
    #sql #postgresql #database #jobreadyprogrammer #databasedeveloper #softwaredeveloper #career #tableau #databases #webdeveloper #aws #admin #jobready #programmer #postgres

КОМЕНТАРІ • 74

  • @MonteFisto100
    @MonteFisto100 2 роки тому +25

    Finally understood it, there's so many bad and overcomplicated explainations out there, but this one is really damn good. Thank you.

  • @nupurgautam1
    @nupurgautam1 4 роки тому +20

    Thanks for sharing this video, it's just the amount of details I needed. Not sure who gave those 3 dislikes, ignore them...

  • @matteomarinelli3752
    @matteomarinelli3752 4 роки тому +17

    Thank you very much!
    You were the only one I was able to fully understand, you saved my day ahahah :)

  • @afsananasrin4700
    @afsananasrin4700 Місяць тому

    Perfectly explained. Thanks for making me understand the concepts clearly.

  • @kiararicketts2971
    @kiararicketts2971 3 місяці тому +1

    Great and simple explanation, thank you!!

  • @adamsleuis7794
    @adamsleuis7794 9 місяців тому +1

    Man, I love your explanation. You deserve a 👍

  • @fatenaljabaly3911
    @fatenaljabaly3911 2 роки тому +2

    Thank you so much!
    You really helped me understand the difference between the two.

  • @aqsachappalwala4363
    @aqsachappalwala4363 9 місяців тому +1

    best explanation ever .Thank you

  • @user-ko4uv6fg8w
    @user-ko4uv6fg8w 2 роки тому

    Thanks a lot! I didnt find appropriate information on russian resourses and decided to visit your channel. This video make cube, rollup and groupping sets more clear for me. So keep on

  • @akwamfoneventus6124
    @akwamfoneventus6124 6 місяців тому

    This explained it a lot better than my course videos -- some people just teach better without efforts. thank you

  • @acleahcim
    @acleahcim 6 місяців тому

    Amazing video. Helped me with one of my assignments. Thank you for creating an easy to understand video with real examples.

  • @Advanced_Learner
    @Advanced_Learner 4 місяці тому

    many thanks for making it so simple to understand

  • @angelopaligutan1665
    @angelopaligutan1665 2 роки тому +2

    Thank you for a concise yet knowledge-packed video! It helped me a lot

  • @ukaszkiepas57
    @ukaszkiepas57 2 роки тому +1

    AWESOME !!!
    FINALLY UNDERSTOOD :)

  • @sravanialluri5756
    @sravanialluri5756 6 місяців тому

    Best Explanation, Thank you so much

  • @samyboulos4642
    @samyboulos4642 2 роки тому

    I love the way you explained it.

  • @satyendrasingh3805
    @satyendrasingh3805 3 роки тому

    one video cleared all the questions that I had in my mind, Great work!

  • @hiraethneko
    @hiraethneko Рік тому +1

    Thanks so much for this!

  • @ranjithparuchuri6463
    @ranjithparuchuri6463 2 роки тому

    thanks for making this video of rollup and cude.

  • @iaroslavd.916
    @iaroslavd.916 2 місяці тому

    Nicely explained, very clear😊

  • @kelvinojeda8222
    @kelvinojeda8222 Рік тому +1

    Excellent video.

  • @mahdihabibi1875
    @mahdihabibi1875 Рік тому +1

    Great video. Thanks man 🙏

  • @Doshvari
    @Doshvari 4 роки тому +2

    Thank you , that was very good

  • @lenaso4555
    @lenaso4555 2 роки тому

    Thank you very much for explaining the topic so easily!!

  • @demetridoes
    @demetridoes 2 роки тому

    Amazing video! So much better than my university lecturer. Made so simple to understand

  • @hydronicrocker
    @hydronicrocker 6 років тому +2

    With GROUP BY GROUPING SETS, why does the () value at the end show first in the output when its the last item in the query?

  • @alexbarasa3816
    @alexbarasa3816 3 роки тому

    excellent explanation sir. THank you so much for this. Straightforward and educative.

  • @Pichler96
    @Pichler96 9 місяців тому

    very helpful! Thank you :)

  • @Davlet
    @Davlet Рік тому

    at last someone explained it clearly)

  • @kamilyaka3406
    @kamilyaka3406 11 місяців тому

    Very good explanation, thank you.

  • @paulfunigga
    @paulfunigga 2 місяці тому

    Bro, this is very good, thank you for enlightening me!

  • @schaumaul
    @schaumaul 3 роки тому +1

    this guy is a legend

  • @joelcampos3073
    @joelcampos3073 Рік тому

    Very interesting and very well explained!!!

  • @sunnysingh8483
    @sunnysingh8483 2 роки тому

    Thanks a lot man. You taught me more then my teacher did in this video. She skimmed over this subject within 3-5 mins at the end of class and I know this will be on the midterm. I find it very stupid for someone to teach us but not teach us if you get what I mean. Nonetheless I'm studying up and hoping I will pass the test with an above than average grade. Thanks.

    • @jaybee2402
      @jaybee2402 2 роки тому

      She possibly taught you a far bigger lesson - women aren't excited by technology, mechanics etc, and therefore don't understand them.

  • @ASWood95
    @ASWood95 Рік тому

    Well explained thank you very much, really appreciate it!

  • @NirajPRoxx
    @NirajPRoxx 6 років тому

    Thank you so much, that was very detailed explanation. Got very confused when my teacher explained it.

  • @estleexin7584
    @estleexin7584 Рік тому

    very nice explaination

  • @buuqmarabo2778
    @buuqmarabo2778 5 років тому

    u taught me a lot through all your vids, thank!

  • @karimchennoufi698
    @karimchennoufi698 3 роки тому

    thnx for sharing this good video !! it helps a lot for my exam preparation

  • @user-kg1cg4sr2x
    @user-kg1cg4sr2x Рік тому

    Cube function is not available in google bigquery. is their any other alternative ?

  • @nv9946
    @nv9946 3 роки тому

    Thanks for sharing this video. Very well explained.

  • @saki23_220
    @saki23_220 3 місяці тому +1

    Perfect

  • @dorcasogute4192
    @dorcasogute4192 5 років тому +1

    Very effective!!!

  • @ramnaresh4582
    @ramnaresh4582 6 років тому

    Really very awesome and useful to me . Thank you.

  • @SagarYadav-ch2kn
    @SagarYadav-ch2kn Рік тому

    Nicely explained

  • @ngocmainguyen521
    @ngocmainguyen521 3 роки тому

    Thank you so much!

  • @Citrinestones
    @Citrinestones 5 місяців тому

    LIFESAVER!!!

  • @mohaiminulhasan252
    @mohaiminulhasan252 3 роки тому +2

    People like you turn into Data Engineers, and people who can't get that job are assigned to teach students like me. There has to be a fix for this.

  • @aarontan5748
    @aarontan5748 2 роки тому

    Thank you!

  • @angmathew4377
    @angmathew4377 3 роки тому

    how do we know how many rows we will get from group by cube?

  • @twinklegarg1413
    @twinklegarg1413 3 роки тому

    Sir group by ek se jyada columns ke base pe perform to skit hai

  • @oliviermesseumeni9623
    @oliviermesseumeni9623 4 роки тому

    You are the best thank you so much sir!

  • @mozzjonas9292
    @mozzjonas9292 3 роки тому

    Where is link for script

  • @oceanheadted
    @oceanheadted 4 роки тому

    Does it work when there is no hierarchy between the dimension column? E.g. if you were analysing shoe sales data, by size, colour and style...

  • @suhas3785
    @suhas3785 3 роки тому

    Thanks God bless you.....

  • @vedant_10-09
    @vedant_10-09 10 місяців тому

    #1064 limit 0,25 error @groupby grouping sets

  • @hoangphucle9347
    @hoangphucle9347 3 роки тому

    very useful. tks a lot

  • @jordan142495
    @jordan142495 2 роки тому

    Thanks
    😀

  • @saikatde6343
    @saikatde6343 Рік тому

    This is awesome. :)

  • @pankajkharade6936
    @pankajkharade6936 3 роки тому

    Excellent

  • @mossen6225
    @mossen6225 9 місяців тому +2

    If this can make someones life easy 😃
    CREATE TABLE sales
    (
    continent varchar(20),
    country varchar(20),
    city varchar(20),
    units_sold integer
    );
    Insert INTO sales VALUES ('North America', 'Canada', 'Toronto', 10000);
    Insert INTO sales VALUES ('North America', 'Canada', 'Montreal', 5000);
    Insert INTO sales VALUES ('North America', 'Canada', 'Vancouver', 15000);
    Insert INTO sales VALUES ('Asia', 'China', 'Hong Kong', 7000);
    Insert INTO sales VALUES ('Asia', 'China', 'Shanghai', 3000);
    Insert INTO sales VALUES ('Asia', 'China', 'Tokyo', 5000);
    Insert INTO sales VALUES ('Europ', 'UK', 'London', 6000);
    Insert INTO sales VALUES ('Europ', 'UK', 'Manchester', 12000);
    Insert INTO sales VALUES ('Europ', 'France', 'Paris', 5000);
    select * from sales;

  • @medjl6083
    @medjl6083 3 роки тому +1

    what is this the name of software.

  • @akrammezrag4394
    @akrammezrag4394 3 роки тому

    thanks bro.

  • @montaserfadel7327
    @montaserfadel7327 10 місяців тому

    impressiv

  • @faranakyakhdani185
    @faranakyakhdani185 2 роки тому

    amazing

  • @nileshthorat2403
    @nileshthorat2403 3 роки тому

    Present sir

  • @meriemtrabelsi5517
    @meriemtrabelsi5517 2 роки тому

  • @bayerok1582
    @bayerok1582 2 роки тому

    Thank you so much!!!