Learn SQL for Data Analysis in one hour (with sample dataset + 50 queries)
SQL is one of the most important skills to have for data people. In this comprehensive video, learn how to use SQL to perform common data analysis tasks. You will learn:
◈ How to use SELECT statement to answer business questions
◈ Working with WHERE clause
◈ Using AND, OR, NOT and combining them to create complex queries.
◈ Sorting query results using ORDER BY
◈ Combining data from two or more tables using JOINS
◈ Creating reports with GROUP BY
◈ More than 50 example queries, tips and ideas
🚨 PRE-REQUISITES:
You need any SQL console (I am using the FREE MySQL Community Edition and you can download it from )
You also need the Awesome Chocolates Dataset.
See for the sample files, instructions on data import and other SQL resources for you.
😃 Basic intro:
If you want a simple introduction to SQL (for an interview or to brush up), see this video instead -
⏱ IN THE VIDEO:
0:00 - Introduction
0:43 - Data setup, explanation & basic queries
6:24 - Adding calculated columns in SELECT
8:39 - Our first WHERE clause
10:28 - Ordering query results with ORDER BY
13:24 - More Where clause examples
16:42 - Between conditions
19:06 - Working with Dates
21:50 - Using other tables
23:47 - IN clause
24:36 - Pattern matching in SQL
26:30 - CASE operator and branching logic
30:30 - JOINS
36:32 - LEFT Join vs. RIGHT Join ~ EXPLAINED
38:28 - More Join examples
42:10 - Adding conditions to Joins
47:30 - GROUP BY and creating reports with SQL
54:50 - Showing Top 10 Products by Amount
57:12 - Closing remarks & next steps for you
📚 RESOURCES TO LEARN MORE SQL:
1) Practice the problems and scenarios discussed in the video with the awesome chocolates dataset.
2) Solve homework problems listed here -
3) Get one or two SQL books. My recommendations are here -
4) Consider going for an SQL course. Check the same page for my course suggestions.
5) PRACTICE, PRACTICE, PRACTICE!
🙄SQL ALTERNATIVES:
If you don’t want to learn SQL but still wish to work with data, then consider learning POWER QUERY, which offers similar capabilities as SQL.
See this video 👉
😎WATCH NEXT:
Now that you know a bit of SQL, why not use it with Power BI to do visual data analysis?
If you are new to Power BI, see my Power BI video to get started with that.
👇
~
😍FOLLLOW ME
Apart from YouTube, I regularly share content on below places. Feel free to check them out and give a follow.
💻 WEBSITE -
📃 WEEKLY DATA TIPS NEWSLETTER -
📷 INSTAGRAM -
🐤 TWITTER -
~
Select “good day“ from days
where person = “you“ 😃
#sql #tutorial
10 views
618
170
7 months ago 00:01:10 1
how programmers overprepare for job interviews
7 months ago 00:16:21 2
Обзор и установка Microsoft SQL Server 2022 на Windows.
7 months ago 00:19:19 1
Выбираем нужный JOIN | Симулятор SQL |
7 months ago 00:08:42 1
a day in the life of an engineer working from home
7 months ago 01:51:23 1
Harvard CS50 (2023) – Full Computer Science University Course
7 months ago 00:15:53 1
How I consistently study with a full time job (9 months in and still going strong)
7 months ago 00:04:14 1
Why Microsoft Word is the best IDE for programming
7 months ago 00:05:36 1
crypto traders be like...
7 months ago 04:19:34 41
Learn PostgreSQL Tutorial - Full Course for Beginners
7 months ago 04:52:51 1
Artificial Intelligence Full Course | Artificial Intelligence Tutorial for Beginners | Edureka
7 months ago 00:00:29 1
Commercial Carpet Cleaning Prices Per Sq. Metre Bangkok Commercial Carpet Cleaning Service Bangkok
7 months ago 00:25:49 1
Use scatterplots to find details in Power BI reports
7 months ago 00:03:24 1
Seashell Sex Position (Educational Only)
7 months ago 00:51:37 1
Harvard CS50 – Full Computer Science University Course
7 months ago 00:01:21 1
How to pronounce Programming Languages and Termes
7 months ago 00:01:39 1
Revolutionizing Power BI: Introducing the Ultimate Formula Language
8 months ago 00:15:12 1
Will Prompt Engineering Replace Coding?
8 months ago 00:45:16 1
Making Kafka Queryable with Apache Pinot • Tim Berglund • GOTO 2023
8 months ago 00:02:00 1
if “normal” job interviews were like coding interviews
8 months ago 00:21:24 1
JPA / Hibernate Composite Primary Key Example with Spring Boot
8 months ago 00:15:58 1
A Beginner’s Guide to MongoDB Filtering in C#
8 months ago 02:57:10 17
Data Analytics with the Google Stack (SQL, Python, Data Visualization, Data Analysis)