Skip to content
info@datatorials.com
Datatorials
Grow Your Data Skills
Search
Category
Open Button
Home
Courses
About Us
Privacy Policy
Terms and Conditions
Disclaimer
Contact Us
Online SQL Editor
ListDiff
Close Button
Home
All Courses
SQL Tutorial
SQL Tutorial
by
Abdus Sattar
Last updated: January 17, 2026
Course Overview
Learn SQL from
beginner to advanced level
Includes
tables, queries, joins, views, triggers, stored procedures, analytics functions, optimization, security, and real-world projects
Each lesson is
bite-sized
, practical, and beginner-friendly
Designed for
self-paced learning
and
hands-on practice
Module 1: SQL Basics
Introduction to SQL
– What is SQL and why it’s important
Creating Databases
– How to create and manage databases
Creating Tables
– Table structure, primary keys, and constraints
Inserting Data
– INSERT INTO and bulk inserts
Reading Data
– SELECT queries and filtering data
Updating Data
– UPDATE statements and conditions
Deleting Data
– DELETE and TRUNCATE operations
Data Types in SQL
– VARCHAR, INT, DECIMAL, DATE, and more
Constraints in SQL
– PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL
SQL Functions Basics
– COUNT, SUM, AVG, MIN, MAX
Module 2: SQL Queries and Filters
WHERE Clause and Logical Operators
– AND, OR, NOT
ORDER BY and LIMIT
– Sorting and restricting results
GROUP BY and HAVING
– Aggregate functions and grouping
DISTINCT and Aliases
– Remove duplicates and rename columns
String Functions
– CONCAT, LENGTH, SUBSTRING, UPPER, LOWER
Date Functions
– NOW(), CURDATE(), DATE_FORMAT()
CASE Statements
– Conditional logic in queries
IN, BETWEEN, LIKE, IS NULL
– Advanced filtering
Subqueries
– Nested SELECT queries
Joins Introduction
– INNER JOIN, LEFT JOIN, RIGHT JOIN
Module 3: Advanced Joins and Queries
Full Outer Join and Self Join
– Combining tables completely
Cross Join
– All possible combinations
Recursive Joins (CTE)
– Hierarchical data
Union, Union All, Intersect, Except
– Combining query results
Views
– Virtual tables for reuse
Materialized Views
– Stored queries for large datasets
Stored Procedures
– Reusable SQL logic
Stored Procedures with Parameters
– Input and output parameters
Triggers
– Automatic actions on table events
Trigger Types
– BEFORE, AFTER, INSERT, UPDATE, DELETE
Module 4: Transactions, Indexes, and Optimization
Transactions Overview
– Atomic operations
COMMIT
– Save changes
ROLLBACK
– Undo changes
SAVEPOINT
– Partial rollback
Indexes
– Improve query performance
Unique and Composite Indexes
– Special types of indexes
Query Optimization Tips
– Avoid SELECT *, use LIMIT, proper joins
Using Indexes Efficiently
– Index strategies for large tables
Analytics Functions Introduction
– RANK(), DENSE_RANK()
Advanced Analytics Functions
– CUME_DIST(), PERCENT_RANK(), NTILE()
Module 5: SQL Security and Best Practices
SQL Security Overview
– Users, privileges, and roles
Creating Users and Granting Privileges
– Control access
Using Roles for Privilege Management
– Group privileges
Revoking Privileges
– Remove access safely
SQL Best Practices Introduction
– Clean, readable code
Naming Conventions
– Tables, columns, indexes
Query Formatting and Indentation
– Readability
Comments and Documentation
– Maintainable SQL
Avoiding Anti-Patterns
– SELECT *, hard-coded values
Backup and Restore
– mysqldump, CSV import/export
Module 6: Real-World SQL Projects
Building a Customer Orders Analysis System
– Tables, data insertion
Views for High-Value Customers
– Simplify reporting
Analytics for Customer Ranking
– NTILE() and quartiles
Triggers in Action
– Automatic updates
Stored Procedures for Reporting
– Customer order reports
Combining Joins and Analytics
– Advanced queries
Recursive Queries for Hierarchies
– Employee or referral trees
Cross Joins and Self Joins in Projects
– Data combination
Final Project – Full SQL Example
– Complete end-to-end workflow
Course Features
Each lesson includes:
Step-by-step explanation
Code examples
Practice exercises
Hands-on approach ensures
strong foundation for SQL
Suitable for
beginners, analysts, and aspiring data engineers
Curriculum
3 Sections
24 Lessons
1 Week
Expand all sections
Collapse all sections
INTRODUCTION
12
1.1
SQL – Home
1.2
SQL – Roadmap
1.3
SQL – DBMS Concept
1.4
SQL – Databases
1.5
SQL – Syntax
1.6
SQL – Data Types
1.7
SQL – Operators
1.8
SQL – Expressions
1.9
SQL – Comments
1.10
Objectives
1.11
What is a Relational Database?
1.12
What is SQL?
BASIC QUERIES
5
2.1
Selecting All Columns & Rows
2.2
Selecting Specific Columns
2.3
Selecting Specific Rows
2.4
Sorting Rows
2.5
Eliminating Duplicate Rows
ADVANCED OPERATORS
7
3.1
The LIKE Operator
3.2
The AND Operator
3.3
The BETWEEN Operator
3.4
The OR Operator
3.5
The IN Operator
3.6
The IS NULL Operator
3.7
Precedence and Negation
Instructor
Abdus Sattar
2 Students
4 Courses
Free
Student:
1 Student
Lesson:
24 Lessons
Duration:
1 Week
Quiz:
0 Quizzes
Level:
All levels
Start Now
Share
Copy
Copy to Clipboard
Facebook
Twitter
Pinterest
Linkedin
Modal title
Main Content