MP3JOSS

SQL Group By: An Explanation and How To Use It

SQL Group By: An Explanation and How To Use It

Choose Download Format

Download MP3 Download MP4

Details

TitleSQL Group By: An Explanation and How To Use It
AuthorDatabase Star
Duration5:04
File FormatMP3 / MP4
Original URL https://youtube.com/watch?v=x2_mOJ3skSc

Description

📝 Get my free SQL Cheat Sheets: https://databasestar.mykajabi.com/lpkj-sql-cheat-sheets/?video=x2_mOJ3skSc
🎓 Master SQL Fundamentals: https://databasestar.mykajabi.com/sql-simplified/?video=x2_mOJ3skSc

The SQL GROUP BY keyword is a powerful feature that lets you summarise data from your query into groups.

This can be helpful to see the number of employees in a department, or the total value of sales per month, and much more. Any time you need "something PER something else", it's often done with an SQL Group By.

In this video, you'll learn what Group By is, a step-by-step process on how to write one, what happens if you don't include Group By, and some examples.

Timestamps:
00:00 Start
00:09 What is Group By?
00:30 Sample table
00:49 First query
01:34 Group By question
01:46 Start a Group By query
02:37 Add an Order By
03:04 Can we exclude Group By?
03:59 Using another aggregate function

🎧 Just For You

🎵 Dont Stop Believin - Journey 🎵 4X4 - Travis Scott 🎵 What I Want - Morgan Wallen Feat. Tate… 🎵 A Bar Song (Tipsy) - Shaboozey 🎵 Love All Night - Amo & Aymen 🎵 Childlike Things - Fka Twigs 🎵 Ill Wait All Day (4 U) - Eli Escobar 🎵 Closer - The Chainsmokers Feat. Halsey 🎵 Beautiful People - David Guetta & Sia 🎵 Wassup - Young Miko 🎵 Price Tag - Jessie J Feat. B.o.b 🎵 Soda Pop - Saja Boys