SQL for Data Analysis: Advanced SQL Querying Techniques
Learn advanced data analysis with SQL, and master topics like subqueries, CTEs, window functions, and more
Learn advanced data analysis with SQL, and master topics like subqueries, CTEs, window functions, and more
This is a hands-on, project-based course designed to help you move beyond the "Big 6" clauses into advanced querying techniques.
We’ll start by reviewing the basics and conducting multi-table analyses, including basic joins, self-joins, cross-joins, and unions.
Next, we’ll cover different ways of working with nested queries by writing subqueries and common table expressions, or CTEs. We’ll walk through examples of subqueries within the various clauses, rewrite subqueries as CTEs, introduce recursive CTEs, and compare these techniques to other options like temporary tables and views.
From there, we’ll break down each component of a window function and review common window functions like ROW_NUMBER, RANK, FIRST_VALUE, LEAD, and LAG. We’ll also cover general functions for working with different data types in SQL, including numeric, datetime, string, and NULL functions.
Last but not least, we’ll take the concepts we’ve learned and use them across a series of common data analysis applications. We’ll deal with duplicate values, apply special value filters, perform rolling calculations, and more.
To wrap up the course, you’ll work on a project as a Data Analyst Intern for Major League Baseball, and use advanced SQL querying techniques to track how player stats like salary, height, and weight have changed over time and across different teams.
COURSE OUTLINE:
SQL Basics Review
Review the big 6 clauses of a SQL query along with other commonly used keywords like LIMIT, DISTINCT, and more
Multi-Table Analysis
Review JOIN basics (INNER, LEFT, RIGHT, OUTER) and introduce variations like self joins, CROSS JOINs, and more
Subqueries & CTEs
Learn how to write subqueries and Common Table Expressions and understand the best situations for using certain techniques
Window Functions
Introduce window functions to perform calculations across a set of rows and discuss various function options and applications
Functions by Data Type
Discover the many SQL functions that can be applied to fields of numeric, datetime, string, and NULL data types
Data Analysis Applications
Apply advanced querying techniques to common data analysis scenarios, including pivoting data, rolling calculations, and more
Final Project
Leverage everything you've learned to track how Major League Baseball (MLB) player statistics have changed over time and across different teams in the league
__________
Ready to dive in? Join today and get immediate, LIFETIME access to the following:
8 hours of high-quality video
21 homework assignments
6 quizzes
4-part final project
Advanced SQL Querying ebook (150+ pages)
Downloadable project files & solutions
Expert support and Q&A forum
30-day Udemy satisfaction guarantee
If you’re an analyst, data scientist, or BI professional looking to master advanced querying with SQL, this is the course for you.
Happy learning!
-Alice Zhao (Author, SQL Pocket Guide and Data Science Instructor, Maven Analytics)
__________
Looking for our full business intelligence stack? Search for "Maven Analytics" to browse our full course library, including Excel, Power BI, MySQL, Tableau and Machine Learning courses!
See why our courses are among the TOP-RATED on Udemy:
"Some of the BEST courses I've ever taken. I've studied several programming languages, Excel, VBA and web dev, and Maven is among the very best I've seen!" Russ C.
"This is my fourth course from Maven Analytics and my fourth 5-star review, so I'm running out of things to say. I wish Maven was in my life earlier!" Tatsiana M.
"Maven Analytics should become the new standard for all courses taught on Udemy!" Jonah M.
FAQ area empty
Installation & Setup
Xem trướcWhere to Write SQL Code
Xem trướcInstalling MySQL (Mac)
Xem trướcInstalling MySQL Workbench (Mac)
Xem trướcInstalling MySQL (PC)
Xem trướcInstalling MySQL Workbench (PC)
Xem trướcGetting Started with MySQL Workbench
Xem trướcLoading Data for This Course
Xem trướcDEMO: Loading Data in MySQL
Xem trướcDEMO: Loading Data in Other RDBMSs
Xem trướcSection Introduction
Xem trướcWorking with Multiple Tables
Xem trướcBasic Joins
Xem trướcBasic Join Types
Xem trướcASSIGNMENT: Basic Joins
Xem trướcSOLUTION: Basic Joins
Xem trướcJoining on Multiple Columns
Xem trướcJoining Multiple Tables
Xem trướcSelf Joins
Xem trướcASSIGNMENT: Self Joins
Xem trướcSOLUTION: Self Joins
Xem trướcCross Joins
Xem trướcUNION vs UNION ALL
Xem trướcKey Takeaways
Xem trướcMulti-Table Analysis
Section Introduction
Xem trướcSubquery Basics
Xem trướcSubqueries in the SELECT Clause
Xem trướcASSIGNMENT: Subqueries in the SELECT Clause
Xem trướcSOLUTION: Subqueries in the SELECT Clause
Xem trướcSubqueries in the FROM Clause
Xem trướcMultiple Subqueries
Xem trướcASSIGNMENT: Subqueries in the FROM Clause
Xem trướcSOLUTION: Subqueries in the FROM Clause
Xem trướcSubqueries in the WHERE & HAVING Clauses
Xem trướcANY vs ALL
Xem trướcEXISTS and Correlated Subqueries
Xem trướcASSIGNMENT: Subqueries in the WHERE Clause
Xem trướcSOLUTION: Subqueries in the WHERE Clause
Xem trướcCommon Table Expressions
Xem trướcSubqueries vs CTEs
Xem trướcReferencing a CTE Multiple Times
Xem trướcASSIGNMENT: CTEs
Xem trướcSOLUTION: CTEs
Xem trướcMultiple CTEs
Xem trướcASSIGNMENT: Multiple CTEs
Xem trướcSOLUTION: Multiple CTEs
Xem trướcRecursive CTEs
Xem trướcSubqueries vs CTEs vs Temp Tables vs Views
Xem trướcKey Takeaways
Xem trướcSubqueries & CTEs
Section Introduction
Xem trướcWindow Function Basics
Xem trướcBreaking Down a Window Function
Xem trướcASSIGNMENT: Window Functions
Xem trướcSOLUTION: Window Functions
Xem trướcFunctions for Window Functions
Xem trướcROW_NUMBER, RANK & DENSE_RANK
Xem trướcASSIGNMENT: Row Numbering
Xem trướcSOLUTION: Row Numbering
Xem trướcFIRST_VALUE, LAST_VALUE & NTH_VALUE
Xem trướcASSIGNMENT: Value Within a Window
Xem trướcSOLUTION: Value Within a Window
Xem trướcLEAD & LAG
Xem trướcASSIGNMENT: Value Relative to a Row
Xem trướcSOLUTION: Value Relative to a Row
Xem trướcNTILE
Xem trướcASSIGNMENT: Statistical Functions
Xem trướcSOLUTION: Statistical Functions
Xem trướcPREVIEW: Moving Average Calculations
Xem trướcKey Takeaways
Xem trướcWindow Functions
Section Introduction
Xem trướcFunction Basics
Xem trướcNumeric Functions
Xem trướcCAST & CONVERT
Xem trướcASSIGNMENT: Numeric Functions
Xem trướcSOLUTION: Numeric Functions
Xem trướcDateTime Functions
Xem trướcASSIGNMENT: DateTime Functions
Xem trướcSOLUTION: DateTime Functions
Xem trướcString Functions
Xem trướcASSIGNMENT: String Functions
Xem trướcSOLUTION: String Functions
Xem trướcPattern Matching
Xem trướcDEMO: Pattern Matching
Xem trướcASSIGNMENT: Pattern Matching
Xem trướcSOLUTION: Pattern Matching
Xem trướcNULL Functions
Xem trướcASSIGNMENT: NULL Functions
Xem trướcSOLUTION: NULL Functions
Xem trướcKey Takeaways
Xem trướcFunctions By Data Type
Section Introduction
Xem trướcDuplicate Values
Xem trướcASSIGNMENT: Duplicate Values
Xem trướcSOLUTION: Duplicate Values
Xem trướcMin / Max Value Filtering
Xem trướcASSIGNMENT: Min / Max Value Filtering
Xem trướcSOLUTION: Min / Max Value Filtering
Xem trướcPivoting
ASSIGNMENT: Pivoting
SOLUTION: Pivoting
Rolling Calculations
DEMO: Rolling Calculations
ASSIGNMENT: Rolling Calculations
SOLUTION: Rolling Calculations
DEMO: Imputing NULL Values
Key Takeaways
Data Analysis Applications
Any SQL Editor (we'll walk you through the install process specifically for MySQL Workbench)
If you are new to SQL, we strongly recommend taking Maven Analytics' Beginner MySQL Business Intelligence course first
Conduct multi-table analysis using JOINs and learn variations like self joins, cross joins, and more
Learn to work with nested queries by writing subqueries and common table expressions (CTEs), and understand the best use cases for each
Use window functions to perform calculations across a set of rows and learn various function options and applications
Discover the many SQL functions that can be applied to fields of numeric, datetime, string, and NULL data types
Apply advanced querying techniques to common data analysis scenarios, including pivoting data, rolling calculations, and more
1.2
1 Student
307 Courses
1253 Reviews
Xin chào các bạn, tôi là Nguyễn Đình Cường, một lập trình viên và giảng viên đam mê công nghệ với hơn 15 năm kinh nghiệm trong ngành công nghiệp phần mềm. Tôi tốt nghiệp từ Bưu Chính Viễn Thông và đã từng làm việc cho một số công ty công nghệ hàng đầu như FPT Software và VinGroup. Với chuyên môn chính là phát triển ứng dụng web, tôi đã làm việc với nhiều công nghệ như HTML, CSS, JavaScript, React cho front-end và Node.js, Express, MongoDB cho back-end. Không chỉ dừng lại ở việc viết mã, tôi còn yêu thích tìm hiểu sâu về thiết kế hệ thống và kiến trúc phần mềm. Tôi tin rằng quá trình học lập trình không chỉ đơn thuần là lý thuyết, mà còn là sự trải nghiệm thực tế và giải quyết vấn đề. Trong các khóa học của mình, tôi cố gắng cung cấp cho học viên những bài giảng thú vị và dễ hiểu, cùng với các bài tập thực hành giúp củng cố kiến thức. Tôi hy vọng rằng qua các khóa học của mình, bạn sẽ không chỉ học được cách viết mã, mà còn phát triển tư duy lập trình và kỹ năng giải quyết vấn đề. Hãy cùng nhau khám phá thế giới lập trình và biến ý tưởng của bạn thành hiện thực! Nếu bạn có bất kỳ câu hỏi nào, đừng ngần ngại liên hệ với tôi. Tôi rất vui được hỗ trợ bạn trong hành trình học tập của mình!
View Details