MYSQL -
SYLLABUS
Course Objectives
Learn SQL – Structured Query Language with a problem-solving
perspective (DSA-oriented).
Build and manage databases using Data Definition Language (DDL).
Perform CRUD operations using Data Manipulation Language (DML).
Strengthen problem-solving using Queries, Joins, Subqueries, Window
Functions.
Write and call Stored Procedures, Functions, and Triggers.
Work with Indexes and Constraints for performance and integrity.
Course Modules
Module 1: Introduction to Databases & SQL
Objective: Understand basic concepts of data, databases, and SQL.
1.1 What is Data, Field, Record, Database?
1.2 Difference between Data & Information
1.3 Limitations of File Management System
1.4 Advantages of DBMS
1.5 Exploring Relational DBMS
1.6 Understanding Client–Server Architecture
1.7 What is SQL? Brief History of SQL & Databases
Module 2: E-R Modelling & Normalization
Objective: Learn how to design databases efficiently.
2.1 Identifying Entities, Attributes, Relationships
2.2 Drawing E-R Diagrams
2.3 Conversion of E-R Diagrams into Tables
2.4 Normalization – 1NF, 2NF, 3NF
2.5 Benefits of Normalization
Module 3: Introduction to SQL Server / RDBMS Tools
Objective: Understand SQL Server (or MySQL/Oracle/PostgreSQL)
environment.
3.1 SQL Server Versions & Editions
3.2 Features, Components & Tools
3.3 SQL Server Management Studio (SSMS)
3.4 Starting & Stopping SQL Server Instances/Services
3.5 Types of System Databases (Master, Model, TempDB, MSDB)
Module 4: SQL Basics – Data Types & Statements
Objective: Learn the structure of SQL statements.
4.1 Types of SQL Statements – DDL, DML, DQL, DCL, TCL
4.2 Data Types in SQL (Numeric, String, Date/Time, Boolean)
4.3 Creating Databases & Tables
4.4 Basic SQL Syntax & Structure
Module 5: DDL and DML Statements
Objective: Work with tables and perform CRUD operations.
5.1 CREATE, ALTER, DROP, TRUNCATE
5.2 INSERT, UPDATE, DELETE
5.3 Why write SQL statements in frontends?
Module 6: Queries (DQL)
Objective: Retrieve and filter data from tables.
6.1 SELECT Statement
6.2 TOP, DISTINCT, NULL
6.3 String & Arithmetic Expressions
6.4 WHERE Clause with Operators (=, <, >, BETWEEN, LIKE, IN, IS NULL)
6.5 ORDER BY, LIMIT, OFFSET
6.6 Introduction to Subqueries
Module 7: Operators & Functions
Objective: Use operators and built-in functions.
7.1 Arithmetic Operators (+, -, *, /, %)
7.2 Comparison Operators (=, <, >, <>, <=, >=)
7.3 Logical Operators (AND, OR, NOT)
7.4 Aggregate Functions: COUNT, SUM, AVG, MIN, MAX
7.5 String Functions: LENGTH, UPPER, LOWER, CONCAT, SUBSTRING,
TRIM…….
7.6 Date Functions: NOW, CURDATE, DATEDIFF, YEAR, MONTH, DAY………
Module 8: SQL Clauses
Objective: Work with essential clauses.
8.1 SELECT, FROM, WHERE
8.2 GROUP BY & HAVING
8.3 ORDER BY
8.4 LIMIT & OFFSET
Module 9: Joins & Set Operations
Objective: Combine data from multiple tables.
9.1 Introduction to Joins
9.2 INNER JOIN
9.3 LEFT JOIN, RIGHT JOIN
9.4 FULL OUTER JOIN
9.5 CROSS JOIN
9.6 SELF JOIN
9.7 Using Joins in UPDATE & DELETE
9.8 Set Operations: UNION, UNION ALL, INTERSECT, EXCEPT
Module 10: Subqueries
Objective: Learn different types of subqueries.
10.1 Single-row Subqueries
10.2 Multi-row Subqueries
10.3 Multi-column Subqueries
10.4 Correlated Subqueries
10.5 Nested Subqueries
Module 11: Window Functions
Objective: Perform advanced analytics using window functions.
11.1 ROW_NUMBER()
11.2 RANK(), DENSE_RANK()
11.3 NTILE()
11.4 LEAD(), LAG()
11.5 Window Functions with Aggregate.
Module 12: Constraints & Data Integrity
Objective: Ensure correctness of data using rules.
12.1 Entity Integrity
12.2 Domain Integrity
12.3 Referential Integrity
12.4 Constraints: PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, DEFAULT,
CHECK, AUTO INCREMENT
Module 13: Transactions & Security
Objective: Manage data safely with transactions.
13.1 ACID Properties
13.2 TCL Commands: COMMIT, ROLLBACK, SAVEPOINT
13.3 DCL Commands: GRANT, REVOKE
Module 14: Advanced SQL
Objective: Work with advanced SQL programming.
14.1 CASE Statements
14.2 Common Table Expressions (CTE)
14.3 Recursive Queries
Module 15: Indexes & Performance
Objective: Learn how to optimize queries.
15.1 What is an Index?
15.2 Clustered vs Non-clustered Index
15.3 Creating & Dropping Indexes
15.4 When to Use Indexes
Module 16: Views
Objective: Simplify queries using views.
16.1 Simple Views
16.2 Complex Views
16.3 Materialized Views
Module 17: Triggers
Objective: Automate actions in the database.
17.1 AFTER INSERT, AFTER UPDATE, AFTER DELETE
17.2 BEFORE INSERT, BEFORE UPDATE, BEFORE DELETE
Module 18: Stored Procedures & Functions
Objective: Reuse logic and simplify operations.
18.1 Introduction to Stored Procedures
18.2 Parameters: IN, OUT, INOUT
18.3 Functions in SQL
18.4 Error Handling in Procedures