SQL Subquery | Complete Guide with Correlated Subquery |

Опубликовано: 19 Март 2025
на канале: Data with Baraa
27,335
1.1k

🎬 Full Advanced Course:    • How I'd Learn Advanced SQL and Why (I...  
A comprehensive SQL subquery tutorial that provides a complete understanding of subqueries in SQL and their use cases. We will cover everything about how to use it in SELECT, FROM, JOIN, WHERE, IN, EXISTS, ANY, ALL, and more..
⬇️ Free Materials (Downloads): https://datawithbaraa.substack.com
👉 Support & Subscribe to Channel: http://bit.ly/3GiCVUE

☕ Stay connected
► Subscribe: http://bit.ly/3GiCVUE
► LinkedIn:   / baraa-khatib-salkini  
► Website: https://www.datawithbaraa.com
► Newsletter: https://bit.ly/BaraaNewsletter
► PayPal: https://paypal.me/baraasalkini
► Join:    / @datawithbaraa  

📚 Free Courses
✅ Tableau:    • Complete HR Tableau Project End-to-En...  
✅ Tableau Project:    • Complete HR Tableau Project End-to-En...  
✅ SQL Basics:    • SQL Tutorial for Beginners [Ultimate ...  
✅ SQL Advanced:    • How I'd Learn Advanced SQL and Why (I...  
✅ ChatGPT:    • ChatGPT Tutorial for Beginners [Ultim...  

🎓Other Platforms (Certifications)
► Udemy: https://bit.ly/BaraaUdemy
► Skillshare (1 Free Month): https://bit.ly/BaraaSkillshare

⭐ My favorite books: https://kit.co/DataWithBaraa/my-favor...
💻 My gear: https://kit.co/DataWithBaraa/my-deskt...

⏱️ Timestamp
00:00 Intro
00:26 What is Subquery?
03:40 Why Subquery?
05:45 Categories of Subquery
07:52 Subquery Result Types
10:23 FROM Clause Subquery
21:15 How DB Executes Subquery
22:51 SELECT Clause Subquery
29:54 JOIN Clause Subquery
34:57 WHERE Clause Subquery
41:41 IN Operator Subquery
50:11 ANY, ALL Operators Subquery
56:25 Correlated Vs Non-Correlated Subqueries
01:07:11 Exists Operator Subquery
01:19:11 Subquery Summary

#sql #sqlserver #data #analytics
*Please note I may earn a small commission for any purchase through these links, which means at no additional cost to you - Thanks for supporting the channel!*
*All opinions or statements in this video are my own and do not reflect the opinion of the company I work for or have ever worked for*