Advanced SQL for Data Analysis: 10 Key Queries in 40 mins

Master advanced SQL with 10 practical queries in 40 minutes. Learn to use WHERE and more for data analysis! ๐Ÿ’ฅ Course: https://chandoo.org/dac

Advanced SQL for Data Analysis: 10 Key Queries in 40 mins
Chandoo
118.6K views โ€ข Aug 6, 2024
Advanced SQL for Data Analysis: 10 Key Queries in 40 mins

About this video

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 -
https://youtu.be/Iceaqdy7mEs

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-program/
Advanced Power BI Course - https://chandoo.org/wp/power-bi-course/

~

#sql #database #chandoo #freedataanalystcourse #fdac

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

118.6K

Likes

2.4K

Duration

43:42

Published

Aug 6, 2024

User Reviews

4.7
(23)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.