Advanced SQL for Data Analysis - 10 Powerful Examples in 40 minutes 🕗
Chandoo Chandoo
659K subscribers
40,513 views
1.2K

 Published On Aug 6, 2024

Learn ADVANCED SQL with 10 PRACTICAL QUERIES in this video.
💥 Course page 👉 https://chandoo.org/dac


You will be learning:

How to use WHERE clause in SQL
Work with AND / OR / LIKE / IN operators in SQL
Getting DISTINCT values with SQL
Grouping data with GROUP BY
Using SQL JOINS
Creating Common Table Expressions (CTE)
Business Analysis and Decision Making with SQL

For the purpose of this video, we will be using the Sakila sample database of MySQL. I explain the process of installing MySQL and the sample databases in the previous video of this series here -
   • Learn SQL + Database Concepts in 20 M...  

The queries we will be developing are:

1) All films with PG-13 films with rental rate of 2.99 or lower

2) All films that have deleted scenes

3) All active customers

4) Names of customers who rented a movie on 26th July 2005

5) Distinct names of customers who rented a movie on 26th July 2005

6) How many rentals we do on each day?

7) All Sci-fi films in our catalogue

8) Customers and how many movies they rented from us so far?

9) Which movies should we discontinue from our catalogue (less than 2 lifetime rentals)

10) Which movies are not returned yet?

H1) How many distinct last names we have in the data?
H2) How much money and rentals we make for Store 1 by day?
What are the three top earning days so far?

~

⏱ VIDEO TOPICS:
===============
0:00 - Introduction to Advanced SQL
0:48 - How to understand the structure of any dataset? (ERD)
4:30 - Primary vs. Foreign Key
7:30 - Let's write SQL queries
7:50 - Query 1
11:32 - Query 2
13:37 - Query 3
14:28 - Homework
14:43 - Query 4
19:32 - Bonus Query
20:34 - Query 5
21:43 - Homework
22:04 - Query 6
24:42 - Query 7
29:15 - Query 8
32:10 - Query 9
35:36 - How to use CTEs (Common Table Expressions)
38:37 - Query 10
42:06 - Homework
42:45 - Limitations of SQL

📁 Sample data and completed queries:
=================================

For all sample files, completed queries and homework solutions, visit the page below:
https://chandoo.org/dac


💥 ADVANCED DATA COURSES BY CHANDOO
======================================

If you want to learn advanced Excel and / or Power BI, consider my paid courses. These in-depth courses cover the entire spectrum of Excel, Power BI, Power Query, Power Pivot and Dashboard reporting in one place with plenty of real-world examples, portfolio projects and completion certificate.

Check out these links:

Advanced Excel Course - https://chandoo.org/wp/excel-school-p...
Advanced Power BI Course - https://chandoo.org/wp/power-bi-course/

~

#sql #database #chandoo #freedataanalystcourse #fdac

show more

Share/Embed