
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Welcome to SQL for Data Analysts: Beginner to Advanced with Real-World Projects!
In this introductory video, you'll meet your instructor and discover how SQL can help you develop practical data analysis skills.
You'll also get a brief overview of what the course offers and how it prepares you to apply SQL to real problems.
In this lecture, you'll become familiar with the course structure, learning objectives, and recommended approach to completing the lessons.
You'll learn how to navigate the course, use the provided resources, and make the most of the practical exercises and real-world projects.
By the end of this lecture, you'll be ready to begin your SQL learning journey with confidence.
In this lecture, you will explore the structure of the healthcare database used throughout the course.
You'll become familiar with the key tables, their relationships, and how an Entity Relationship Diagram (ERD) helps visualize the organization of data.
By the end of this lecture, you'll have a better understanding of the structure of healthcare data and how related tables support real-world SQL analysis.
In this hands-on lecture, you'll learn how to create and open a SQLite database using DB Browser for SQLite.
You'll practice importing CSV files, navigating database tables, examining records, and executing your first SQL queries.
By the end of this lecture, you'll have practical experience working with a SQLite database and be ready to explore SQL commands in greater detail.
In this lecture, you'll learn how to retrieve specific columns from a database using the SQL SELECT statement and understand why selecting only relevant information is important in real-world data analysis.
Through practical demonstrations using our healthcare analytics database, you'll explore SQL formatting best practices, common errors, query troubleshooting, and how to translate business requirements into SQL queries.
You'll also practice analytical reasoning through a real-world business scenario and explore common SQL technical interview questions to build confidence from the beginning of your learning journey.
By the end of this lecture, you'll be able to write SELECT queries to retrieve relevant data from healthcare tables.
In the lecture, you'll learn how to use SQL aliases to rename columns and make query results easier to read and interpret.
You'll practice using the AS keyword to create meaningful column names and improve presentation of your data.
By the end of this lecture, you'll be able to use aliases to produce clearer, more professional, and presentation-ready query results.
In this lecture, you'll learn how to filter data using the SQL WHERE clause to retrieve records that meet specific conditions.
You'll practice filtering healthcare data using text and numeric values, comparison operators, and practical examples from our members dataset.
By the end of this lecture, you'll be able to write SQL queries that return only the records relevant to analysis, making your results more focused and meaningful.
Learn how to combine multiple filtering conditions using the SQL AND and OR operators, and how to use parentheses to control the order in which conditions are evaluated.
Using practical examples from our healthcare claims database, you will learn to:
Apply AND to filter records that meet multiple conditions.
Use OR to retrieve records that satisfy alternative conditions.
Combine AND and OR with parentheses to build accurate filters.
Understand how operator precedence affects query results.
Recognize and avoid common filtering mistakes that can lead to misleading analytical findings.
By the end of this lecture, you will be able to write more precise SQL queries and validate the logic behind your results.
In this lecture, you'll learn how to use SQL aggregate functions to summarize data and answer real-world analytical questions.
Using our healthcare claims database, we'll explore:
COUNT() to count records and COUNT(DISTINCT) to identify unique members.
SUM() to calculate total payment amounts.
AVG() to calculate average payments.
MIN() and MAX() to identify the smallest and largest values.
ROUND() to round numeric results to a specified number of decimal places.
How to combine multiple aggregate functions into a single SQL query.
You'll also learn how aggregate functions handle NULL values and how to interpret unusual results, including negative payment amounts.
Downloadable Resource: An Aggregate Functions Quick Reference Guide is included to help you review the concepts and syntax covered in this lecture
In this lecture, you'll learn how to use the SQL GROUP BY clause to organize data into categories and calculate summary statistics for each group.
Using our healthcare claims database, we’ll explore how to:
Group records by one or more columns.
Use GROUP BY with aggregate functions such as COUNT, SUM, and AVG.
Count distinct members within different claim categories.
Calculate total and average payments by claim status.
Group data by multiple columns, including claim status and place of service.
Combine multiple aggregate functions into a single summary query.
Use ORDER BY to organize grouped results.
By the end of this lecture, you’ll be able to write SQL queries that summarize data across different categories and interpret the results to answer real-world analytical questions.
Learn how to use the HAVING Clause to filter grouped results based on aggregate calculations. In this lecture, you'll explore the difference between WHERE and HAVING and apply HAVING with aggregate functions such as COUNT(), SUM(), and AVG() to analyze data using practical healthcare examples.
By the end of this lecture, you'll understand how to use GROUP BY and HAVING together to answer meaningful analytical questions.
In this lecture, students will learn how to combine data from related tables using INNER JOIN and LEFT JOIN. Through hands-on SQL examples with a real-world healthcare dataset, you'll understand how JOINs work, retrieve matching records, identify unmatched records, and interpret NULL values.
By the end of this lecture, you'll be able to write JOIN queries to analyze data across multiple tables
In this lecture, you'll learn how to combine data from related tables using RIGHT JOIN and FULL OUTER JOIN. Through hands-on SQL examples using our healthcare analytics database, you'll explore how these JOINs work, retrieve matching and unmatched records, interpret NULL values, and understand the differences between JOIN types.
By the end of the lecture, you'll be able to write RIGHT JOIN and FULL OUTER JOIN queries and select the appropriate JOIN type for different data analysis scenarios.
In this lecture, you'll learn how to use SELF JOIN and CROSS JOIN to work with data in SQL. Through hands-on examples using our healthcare analytics database, you'll explore how SELF JOIN compares related records within the same table and how CROSS JOIN generates every possible combination of rows from two datasets.
By the end of the lecture, you'll be able to write SELF JOIN and CROSS JOIN queries, use table aliases effectively, interpret query results, and determine when to apply each technique in real-world data analysis.
In this lecture, you'll learn the fundamentals of SQL subqueries and how to use queries within other queries to filter and compare data.
Through hands-on examples using our healthcare analytics database, you'll explore scalar and multi-row subqueries, use comparison operators and IN / NOT IN, and understand how NULL values can affect query results.
By the end of the lecture, you'll be able to write and interpret basic SQL subqueries and apply them to practical data analysis scenarios.
In this lecture, you'll learn how to apply subqueries to solve practical data analysis problems. Through hands-on examples using our database, you'll explore correlated subqueries, EXISTS and NOT EXISTS, and subqueries in the FROM clause.
You'll also learn how to compare records against group averages, identify matching and unmatched records, and summarize data using derived tables.
By the end of the lecture, you'll be able to write and interpret these SQL subqueries and apply them to real-world data analysis scenarios.
In this lecture, you'll learn how to use Common Table Expressions (CTEs) to simplify complex SQL queries and improve query readability. Through hands-on examples using our healthcare analytics database, you'll explore the WITH clause, create single and multiple CTEs, and understand the differences between CTEs and subqueries.
You'll also learn how to organize calculations into logical steps, compare claim payments, and summarize data at the member level.
By the end of the lecture, you'll be able to write and interpret CTEs and use them to develop more structured, readable, and manageable SQL queries for practical data analysis.
In this lecture, you'll learn how to use SQL CASE expressions to apply conditional logic and transform raw data into meaningful analytical information. Through hands-on examples using our healthcare analytics database, you'll explore simple and searched CASE expressions, condition ordering, and NULL handling.
You'll also learn how to categorize payment amounts, create binary flags, and perform conditional aggregation to calculate claim counts and payment totals.
By the end of the lecture, you'll be able to apply CASE expressions to business rules, create analytical indicators, and develop more informative SQL queries for reporting and data analysis.
In this lecture, you'll learn how to use SQL window functions to perform analytical calculations without losing individual row-level details. Through hands-on examples using our healthcare analytics database, you'll explore the OVER clause, PARTITION BY, ORDER BY, and window frames.
You'll also learn how to calculate overall average payments and average payment per member, determine claim counts per member, and calculate running payment totals.
By the end of the lecture, you'll be able to distinguish between traditional aggregate functions and window functions, compare individual records against aggregate benchmarks, and apply window functions to practical reporting and data analysis scenarios.
In this lecture, you'll learn how to use SQL ranking functions, including ROW_NUMBER(), RANK(), and DENSE_RANK(), to assign rankings, handle ties, and identify top-performing records. Through hands-on examples using our healthcare analytics database, you'll explore ranking across an entire dataset and within individual groups using PARTITION BY.
You'll also learn how to perform TOP-N analysis, use tie-breakers to ensure consistent results, and filter ranked records using common table expressions (CTEs).
By the end of the lecture, you'll be able to select the appropriate ranking function based on business requirements, solve practical analysis problems, and confidently explain your reasoning when answering SQL interview questions.
In this lecture, you'll learn how to use the SQL window functions LAG() and LEAD() to retrieve values from previous and subsequent rows, compare records, and analyze changes across an ordered dataset.
Through practical examples using our healthcare analytical database, you'll explore offsets, default values, PARTITION BY, and techniques for calculating absolute and percentage changes.
You'll also learn how to handle NULL values, avoid common analytical mistakes, and combine window functions with common table expressions (CTEs) to solve practical business problems and SQL technical interview questions.
In this lecture, you'll learn how to use SQL date and time functions to perform time-based data analysis, extract calendar components, filter reporting periods, and calculate elapsed time between records.
Through hands-on demonstrations using our healthcare analytics database, you'll explore DATE(), DATETIME(), STRFTIME(), JULIANDAY(), and date modifiers in SQLITE.
You'll also learn how to summarize monthly activity, combine date functions and CTEs, analyze changes over time, and solve practical SQL technical interview questions.
Learn SQL with Confidence, From Beginner to Advanced with Real-World Projects.
SQL (Structured Query Language) is one of the most valuable skills for data analysts, business professionals, and anyone working with data.
This course goes beyond learning SQL syntax to help you develop practical analytical skills, solve real-world business problems, and prepare for SQL technical interviews through guided challenges, detailed solutions, and interview strategies.
Whether you are completely new to SQL or looking to strengthen your analytical skills, you will learn through clear explanations, guided demonstrations, and hands-on exercises.
What You Will Learn
Understand relational databases and navigate DB Browser for SQLite.
Retrieve data using SELECT statements.
Write SQL queries to retrieve, filter, sort, and transform data.
Summarize and analyze data using aggregate functions, GROUP BY, and HAVING.
Combine data from multiple tables using SQL JOINs.
Write SQL subqueries and common table expressions (CTEs).
Apply conditional logic using CASE expressions.
Perform advanced calculations using window functions.
Rank records, handle ties, and perform Top-N analysis.
Interpret SQL query results and communicate meaningful business insights.
Prepare for SQL technical interviews through practical challenges and problem-solving strategies.
Learn by Doing
Rather than memorizing SQL commands, you will work with realistic datasets containing members, providers, encounters, claims, and other related information.
These datasets provide opportunities to practice retrieving, filtering, combining, and interpreting information while developing the problem-solving skills used by data analysts.
The course also includes practical exercises to reinforce your understanding and help you build confidence in writing SQL queries independently.
Beyond writing SQL queries, you will also explore how to present analytical findings clearly, consider stakeholder needs, and translate data into meaningful business insights.
Who Is This Course For?
The course is suitable for beginners, aspiring data analysts, business professionals, researchers, and anyone interested in developing practical database querying skills.
No previous programming experience or healthcare background is required.
By the end of this course, you will have a stronger foundation in SQL and a clearer understanding of how to apply it to real-world analytical questions.
Start learning SQL today and take the next step toward becoming a confident, practical data analyst.