Students and Examinations | SQL | LeetCode | Easy Explaination
SheCodes SheCodes
409 subscribers
43 views
14

 Published On Aug 20, 2024

🔥 Welcome to the first episode of our new SQL series on She Codes! 🔥

In this video, we're tackling another essential SQL problem from LeetCode: counting the number of exams each student attended across all subjects. This problem is a perfect exercise for mastering SQL join operations and aggregate functions.

🔍 What you'll learn:

How to use LEFT JOIN to include all records, even when some are missing.
Writing GROUP BY clauses to group results by multiple columns.
Applying aggregate functions like COUNT() to count occurrences in your data.

💻 Example Question:
We have three tables: Students, Subjects, and Examinations. Our task is to find out how many times each student attended exams in each subject. This will involve working with multiple tables and ensuring that even students who didn't attend an exam are included in the final output.

📚 SQL Query Breakdown:
I'll guide you through the steps to construct the SQL query, from understanding the schema to writing the final SELECT statement. Whether you're preparing for coding interviews or just want to sharpen your SQL skills, this video will help you improve!

💡 Pro Tip: Don't worry if SQL joins seem tricky! I'll explain everything in a beginner-friendly way, making it easy to follow along.


👩‍💻 Join the She Codes community

Github - https://github.com/BhumikaJoshi13/Top...

Subscribe to the channel for more coding tutorials: @SheCodes-hk6b
Comment below with the SQL questions you’d like me to cover next!
Thanks for watching, and happy coding! 🚀

#SQL #LeetCode #SQLTutorial #CodingInterview #DataScience #Programming #SheCodes #LearnSQL #TechWithBhumika #CodingCommunity #WomenInTech #SQLSeries #CodeWithMe #DataAnalysis #BeginnerFriendly #TechEducation #ProgrammingTips #SQLQueries #DatabaseTutorial #CodeLearning #shecodes #codinglover #coderslife

show more

Share/Embed