SQL & MySQL 2026: Real-World Problem Solving

Write real-world SQL with JOINs, CTEs, window functions and reports, then design and optimize MySQL databases.

  • 0.0 (0 Reviews)
  • 0 Students
  • 111 Lessons
  • Robert Westbrook

Course Overview

Learn SQL and MySQL by solving real database problems from the ground up. This course takes you beyond basic SELECT statements and progressively develops the practical skills needed to query, analyze, design and optimize relational databases. Instead of simply memorizing SQL syntax, you’ll learn how to approach a database problem, choose the right technique and build a query that produces a useful result.


You’ll build a strong understanding of:


–relational database concepts, tables, columns and data types

–MySQL and MySQL Workbench fundamentals

–primary keys, foreign keys, relationships and constraints

–data integrity and reliable relational database design

–SELECT queries, filtering, sorting and pagination

–INSERT, UPDATE and DELETE operations

–INNER JOIN, LEFT JOIN and multi-table queries

–aggregations, `GROUP BY`, `HAVING` and conditional logic

–date and string functions for practical data analysis

–subqueries, correlated queries, `EXISTS` and `NOT EXISTS`

–`UNION` and `UNION ALL`

–CTEs and advanced SQL query composition

–window functions such as `ROW_NUMBER`, `RANK`, `DENSE_RANK`, `LAG` and `LEAD`

–duplicate detection, missing-data and latest-record problems

–Top-N analysis, rankings, percentages and business reporting

–database normalization, indexes and schema design

–`EXPLAIN`, execution plans and query optimization

–transactions, ACID, isolation levels and deadlocks

–views, stored procedures, triggers and backups

–database security and SQL injection prevention

–and much more


Throughout the course, you’ll work with practical scenarios that go beyond isolated examples and resemble the types of SQL tasks you may encounter when working with real relational data. You’ll also bring the concepts together in a realistic Online Store Database project.


By the end, you’ll be able to approach SQL problems methodically, write more advanced MySQL queries, understand how relational databases work and work with data with far greater confidence.

See more

FAQ

FAQ area empty

Course curriculum

17 chương 111 bài học 7 giờ 45 phút 7 bài học thử miễn phí
Chương 1 1. Introduction
Chương 2 2. MySQL Fundamentals
Chương 3 3. Database Structure
Chương 4 4. SELECT and Data Filtering
  • SELECT and Choosing Columns 4:09
  • Calculated Columns and Aliases 4:25
  • DISTINCT 4:03
  • WHERE and Comparison Operators 4:02
  • AND, OR, NOT and Operator Precedence 4:13
  • IN, BETWEEN and LIKE 4:12
  • NULL in Queries 3:59
  • ORDER BY 4:07
  • LIMIT and OFFSET 4:00
  • SQL Query Execution Order 4:07
Chương 5 5. Modifying Data
  • INSERT and Multiple Rows 4:21
  • UPDATE 3:57
  • DELETE 4:12
  • Safe UPDATE and DELETE 4:13
  • Handling Duplicate Data 4:04
  • INSERT ... SELECT 4:20
Chương 6 6. JOINs
  • Why JOINs Matter 4:33
  • INNER JOIN 4:20
  • LEFT JOIN 3:31
  • Joining Multiple Tables 4:07
  • JOIN Conditions with ON 4:07
  • Finding Missing Related Records 4:09
  • Self JOIN and Other JOIN Types 4:15
  • Common JOIN Mistakes 4:16
Chương 7 7. Aggregations and Reporting
  • Aggregate Functions 3:58
  • GROUP BY 4:03
  • GROUP BY with Multiple Columns 4:19
  • WHERE vs HAVING 4:24
  • Conditional Aggregation 4:12
  • NULL and Aggregate Functions 4:09
  • Building Business Reports 4:28
Chương 8 8. Functions and Data Transformation
  • CASE and Conditional Logic 3:51
  • COALESCE, IFNULL and NULLIF 4:23
  • String Functions 4:14
  • Date and Time Functions 4:21
  • Date Calculations and Date Ranges 4:30
  • Numeric Calculations 4:44
Chương 9 9. Subqueries and Combining Results
  • What Is a Subquery 4:00
  • Subqueries with WHERE 4:00
  • EXISTS and NOT EXISTS 3:58
  • Correlated Subqueries 3:58
  • JOIN vs Subquery 3:56
  • UNION and UNION ALL 4:48
  • Solving Problems with Subqueries 4:10
Chương 10 10. Practical SQL Problems
  • Finding Duplicate Records 4:04
  • Finding Records Without Related Data 3:33
  • Finding the Latest Record per Group 3:40
  • Finding the Highest or Lowest Record per Group 3:44
  • Top-N Records 4:02
  • Calculating Percentages and Ratios 4:19
  • Monthly and Yearly Reports 4:02
  • Comparing Current vs Previous Period 3:53
  • Solving a Complex Business Problem 3:59
Chương 11 11. CTEs and Window Functions
  • Common Table Expressions with WITH 4:05
  • CTE vs Subquery 4:07
  • Introduction to Window Functions 4:08
  • OVER() and PARTITION BY 4:09
  • ROW_NUMBER, RANK and DENSE_RANK 4:09
  • LAG and LEAD 4:03
  • Running Totals and Moving Calculations 4:16
  • Top-N per Group with Window Functions 4:12
Chương 12 12. Database Design
  • Designing a Database from Requirements 4:19
  • Entities Relationships and ER Diagrams 4:25
  • Choosing Primary and Foreign Keys 4:23
  • One-to-Many and Many-to-Many Design 4:30
  • Normalization 4:41
  • Common Database Design Mistakes 4:43
  • Designing a Database from Scratch 4:20
Chương 13 13. Indexes and Query Optimization
  • Why Indexes Matter 4:07
  • Creating Single and Composite Indexes 4:32
  • Indexes with WHERE JOIN and ORDER BY 4:48
  • EXPLAIN 4:03
  • Reading an EXPLAIN Plan 4:09
  • Optimizing a Slow Query 4:22
Chương 14 14. Transactions and Security
  • Transactions COMMIT and ROLLBACK 3:51
  • ACID SAVEPOINT and Transaction Design 4:36
  • Concurrency Isolation and Deadlocks 4:34
  • Users Permissions and Least Privilege 3:58
  • SQL Injection and Prepared Statements 4:29
  • Backup and Restore 4:15
Chương 15 15. Additional MySQL Features
  • Views Stored Procedures and Triggers 4:11
Chương 16 16. Final Project - Online Store Database
  • Project Requirements and Database Design 4:01
  • Creating the Database Schema 4:28
  • Populating the Database 4:29
  • Basic Queries 3:54
  • JOINs and Business Queries 4:21
  • Business Reports 4:15
  • Advanced SQL 4:14
  • Data Quality 4:30
  • Performance Optimization 4:21
  • Transactions and Security 3:55
  • Final Business Challenge 4:30
Chương 17 17. Course Completion
  • Congratulations on Completing the Course 4:51

Requirment

  • No previous SQL or MySQL experience is required.

  • No programming experience is required.

  • MySQL and MySQL Workbench are recommended for hands-on practice.

  • Installation and setup are covered in the course.

  • Basic computer skills and a willingness to practice are enough to get started.

Outcomes

  • understanding relational databases, keys, relationships and data integrity

  • writing practical SQL queries with filtering, sorting and data modification

  • mastering INNER JOIN, LEFT JOIN, multi-table queries and aggregations

  • solving real-world problems with subqueries, `EXISTS` and `NOT EXISTS`

  • using CTEs and window functions for advanced SQL analysis

  • building business reports and solving ranking, duplicate and latest-record problems

  • designing reliable databases with normalization and strong relational structure

  • improving performance with indexes, `EXPLAIN` and execution plans

  • understanding transactions, ACID, isolation levels, deadlocks and security

  • applying your knowledge in a realistic Online Store Database project

  • and much more

Instructor

...
Robert Westbrook

0.0

  • ... 0 Student
  • ... 1 Course
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all