🎯 Course Goals
-
Understand relational databases and SQL fundamentals.
-
Write efficient queries to extract, filter, and analyze data.
-
Perform joins, subqueries, aggregations, and window functions.
-
Work with real-world databases for business use-cases.
-
Optimize queries, design schemas, and understand transactions.
-
Prepare for SQL interviews and certifications.
🏗 Course Structure
Duration: 8–10 weeks (self-paced)
Format: Video lessons, quizzes, exercises, projects, and case studies
📂 Modules & Lessons
Module 1: Introduction to Databases & SQL
-
What is a Database? (RDBMS, NoSQL, OLTP vs OLAP)
-
Introduction to SQL (DDL, DML, DCL, TCL)
-
Installing SQL Environment (MySQL / PostgreSQL / SQL Server / SQLite)
-
Your First Query (
SELECT * FROM table;
)
Exercise: Connect to a sample database and retrieve data.
Quiz: Identify the correct SQL command for different scenarios.
Module 2: SQL Basics – Data Retrieval
-
SELECT
Statement Basics -
Filtering with
WHERE
-
Sorting with
ORDER BY
-
Limiting Results with
LIMIT / TOP
-
Aliases (
AS
)
Exercise: Retrieve top 10 employees earning more than $50k.
Module 3: Filtering & Operators
-
Logical Operators (
AND
,OR
,NOT
) -
Comparison Operators (
=
,<
,>
,BETWEEN
,IN
) -
Pattern Matching with
LIKE
& Wildcards -
Dealing with
NULL
Values
Mini Project: Create a query to filter customer orders in a given date range.
Module 4: Aggregations & Grouping
-
Aggregate Functions (
COUNT
,SUM
,AVG
,MIN
,MAX
) -
Grouping with
GROUP BY
-
Filtering Groups with
HAVING
-
Combining Aggregations with Conditions
Project: Sales analysis – Find average order value per region.
Module 5: Joins & Relationships
-
Understanding Keys (Primary, Foreign)
-
INNER JOIN
-
LEFT JOIN & RIGHT JOIN
-
FULL OUTER JOIN
-
SELF JOIN
-
CROSS JOIN
Case Study: Employee–Department Database (fetch employees with their department names).
Module 6: Subqueries & Advanced Filtering
-
Single-Row Subqueries
-
Multi-Row Subqueries (
IN
,ANY
,ALL
) -
Correlated Subqueries
-
EXISTS
vsNOT EXISTS
Exercise: Find customers who placed more than 5 orders.
Module 7: Advanced SQL Functions
-
String Functions (
CONCAT
,SUBSTRING
,REPLACE
,TRIM
) -
Date & Time Functions (
NOW
,DATEADD
,DATEDIFF
) -
Mathematical Functions (
ROUND
,CEIL
,FLOOR
) -
CASE & IF Statements
Mini Project: Create a sales report with “Low/Medium/High” value classification.
Module 8: Window Functions
-
Introduction to Window Functions
-
ROW_NUMBER()
,RANK()
,DENSE_RANK()
-
NTILE()
, Running Totals, Moving Averages -
Partitioning Data with
PARTITION BY
Case Study: Ranking top 3 products per category by sales.
Module 9: Database Management & Design
-
Creating & Dropping Databases/Tables
-
Data Types (INT, VARCHAR, DATE, etc.)
-
Constraints (PRIMARY KEY, UNIQUE, DEFAULT, CHECK)
-
Normalization & Schema Design (1NF, 2NF, 3NF, BCNF)
-
Indexing Basics
Exercise: Create a normalized database for an e-commerce store.
Module 10: Transactions & Security
-
What is a Transaction? (
BEGIN
,COMMIT
,ROLLBACK
) -
ACID Properties
-
Isolation Levels
-
SQL Injection & Prevention
-
User Roles & Permissions
Lab: Simulate a banking transfer with rollback on error.
Module 11: Query Optimization
-
Understanding Execution Plans
-
Indexing Strategies
-
Avoiding Common Pitfalls (SELECT *)
-
Optimizing Joins & Subqueries
-
Denormalization for Performance
Case Study: Optimize slow-running queries in a sales database.
Module 12: Real-World Projects
-
Project 1: HR Database Analysis
-
Find employee turnover rates, salary distribution, and hiring trends.
-
-
Project 2: E-commerce Database
-
Sales analysis, top customers, product trends.
-
-
Project 3: Banking Transactions
-
Fraud detection with unusual transaction patterns.
-
-
Project 4: Social Media Analytics
-
Top posts, engagement rates, user retention.
-
Module 13: SQL for Data Science & Business
-
Using SQL with Excel / Power BI / Tableau
-
SQL for Machine Learning (Feature Extraction)
-
Common Interview Questions
-
SQL Certifications (Microsoft, Oracle, PostgreSQL, Google BigQuery)