
Play Store Application link β SQL in 18 steps – App on Google Play
1. Introduction to SQL
- What is SQL?
- Importance of SQL
- SQL vs NoSQL
- SQL Standards (SQL-92, SQL-99, SQL-2003, SQL-2011)
2. SQL Basics
- SQL Syntax and Commands
- SQL Data Types
- MySQL Data Types
- Oracle Data Types
- PostgreSQL, SQL Server, etc.
3. Database Design and Normalization
- Introduction to Database Design
- Normalization (1NF, 2NF, 3NF, BCNF, 4NF, 5NF)
- Denormalization
4. SQL Data Definition Language (DDL)
CREATE DATABASE
,ALTER DATABASE
,DROP DATABASE
CREATE TABLE
,ALTER TABLE
,DROP TABLE
- MySQL vs Oracle syntax differences
- Constraints:
PRIMARY KEY
,FOREIGN KEY
,UNIQUE
,CHECK
,DEFAULT
TRUNCATE TABLE
5. SQL Data Manipulation Language (DML)
INSERT INTO
(Single & Multiple Rows)UPDATE
(Single & Multiple Columns)DELETE
MERGE
(Supported in Oracle, SQL Server)- Differences in
INSERT
syntax across databases
6. SQL Data Query Language (DQL)
SELECT
StatementWHERE
ClauseORDER BY
GROUP BY
&HAVING
DISTINCT
LIMIT
(MySQL) vsROWNUM
(Oracle) vsFETCH FIRST N ROWS
7. SQL Operators
- Arithmetic Operators
- Comparison Operators (
=
,!=
,<
,>
,<=
,>=
) - Logical Operators (
AND
,OR
,NOT
) - Wildcard Operators (
LIKE
,%
,_
) IN
,BETWEEN
,EXISTS
8. SQL Joins
INNER JOIN
LEFT JOIN
RIGHT JOIN
FULL OUTER JOIN
(Not supported in MySQL)SELF JOIN
CROSS JOIN
- Differences in join syntax in MySQL vs Oracle vs SQL Server
9. SQL Subqueries
- Single-row subqueries
- Multi-row subqueries
- Correlated subqueries
EXISTS
andNOT EXISTS
- Database-specific variations
10. SQL Views
- Creating and using views
- Updating views
- Dropping views
- Materialized Views (Oracle vs MySQL)
11. SQL Transactions and Concurrency Control
- ACID Properties
COMMIT
,ROLLBACK
,SAVEPOINT
- Isolation Levels (
READ COMMITTED
,SERIALIZABLE
, etc.) - Locks and Deadlocks
- Differences in MySQL (InnoDB) vs Oracle Transactions
12. SQL Indexing and Optimization
- Types of Indexes (
B-Tree
,Hash
,Full-Text
) - Creating and Dropping Indexes
- Query Optimization Techniques
EXPLAIN
(MySQL) vsEXPLAIN PLAN
(Oracle)
13. SQL Stored Procedures and Functions
- What are Stored Procedures?
- Creating and Using Stored Procedures
- SQL Functions (
Scalar
,Aggregate
,Table-valued
) - Database-specific variations (
PL/SQL
in Oracle,T-SQL
in SQL Server)
14. SQL Triggers
BEFORE INSERT
,AFTER INSERT
BEFORE UPDATE
,AFTER UPDATE
BEFORE DELETE
,AFTER DELETE
- MySQL vs Oracle Trigger Syntax
15. SQL User Management and Security
- Creating and Managing Users
- Granting and Revoking Permissions (
GRANT
,REVOKE
) - Roles and Privileges
- Database-specific variations
16. SQL Backup and Restore
mysqldump
(MySQL)EXP/IMP
,DATAPUMP
(Oracle)pg_dump
(PostgreSQL)- Backup and Recovery Strategies
17. Advanced SQL Concepts
- Common Table Expressions (
WITH
) - Recursive Queries
PIVOT
andUNPIVOT
(SQL Server, Oracle)- Window Functions (
RANK()
,DENSE_RANK()
,ROW_NUMBER()
)
18. SQL for Big Data and Cloud
- SQL in Hadoop (HiveQL)
- Cloud Databases (AWS RDS, Azure SQL, Google Cloud SQL)
- Differences in SQL usage on Cloud Platforms