MP3JOSS

Advanced SQL Query - 2 | Interview Question | Nested GROUP BY

Advanced SQL Query - 2 | Interview Question | Nested GROUP BY

Choose Download Format

Download MP3 Download MP4

Details

TitleAdvanced SQL Query - 2 | Interview Question | Nested GROUP BY
AuthorShreyas
Duration6:41
File FormatMP3 / MP4
Original URL https://youtube.com/watch?v=VvYTOyhoY9Q
🎵 Support the artists — buy the original for the best audio quality! 🎵

Description

Script for creating Table:
drop table new_cust;
create table new_cust (
joining_date date,
customer_id int
);
insert into new_cust
values(cast('2019-10-02' as date),3),(cast('2019-07-01' as date),7),(cast('2020-01-01' as date),3),(cast('2020-02-23' as date),19)
,(cast('2022-10-10' as date),3),(cast('2022-12-15' as date),3),(cast('2023-02-28' as date),12) ,(cast('2023-08-08' as date),19);

select * from new_cust

🎧 Just For You

🎵 Shake It To The Max (Fly) - Moliy, Silent… 🎵 Good Luck, Babe! - Chappell Roan 🎵 Sexy And I Know It - Lmfao 🎵 Shake It To The Max (Fly) - Moliy, Silent… 🎵 Blurred Lines - Robin Thicke Feat… 🎵 Blinding Lights - The Weeknd 🎵 Just The Way You Are - Bruno Mars 🎵 Closer - The Chainsmokers Feat. Halsey 🎵 Headphones On - Addison Rae 🎵 Survive - Lewis Capaldi 🎵 Mystical Magical - Benson Boone 🎵 That's So True - Gracie Abrams