SQL
SQL Tutorial
SQL for beginners: querying, filtering, sorting and grouping data.
Start learning
61 lessons
Lessons
- SQL SELECT Statement: WHERE, ORDER BY and GROUP BY
- SQL WHERE Clause: Filter Rows With AND, OR, IN, LIKE
- SQL ORDER BY, LIMIT, OFFSET and DISTINCT
- SQL INSERT, UPDATE and DELETE (With Examples)
- SQL Aggregate Functions: COUNT, SUM, AVG, MIN, MAX
- SQL GROUP BY and HAVING Explained With Examples
- SQL JOINs: INNER JOIN, LEFT JOIN and More
- SQL Subqueries: Scalar, IN, EXISTS and Correlated
- SQL CREATE TABLE and Constraints (PRIMARY KEY, FOREIGN KEY)
- SQL Indexes: CREATE INDEX, Query Plans and Trade-offs
- SQL Views: CREATE VIEW, Uses and Limits
- SQL NULL Values: IS NULL, COALESCE and NULLIF
- SQL CASE Expression (CASE WHEN THEN ELSE END)
- SQL String Functions: UPPER, SUBSTR, TRIM, REPLACE and LIKE
- SQL Date and Time Functions with Examples
- SQL UNION, UNION ALL, INTERSECT and EXCEPT
- SQL Common Table Expressions (WITH and Recursive CTE)
- SQL Window Functions: ROW_NUMBER, RANK, LAG and Running Totals
- SQL Transactions: COMMIT, ROLLBACK, SAVEPOINT and ACID
- SQL ALTER TABLE and DROP TABLE (DELETE vs TRUNCATE vs DROP)
- Database Normalization: 1NF, 2NF and 3NF Explained
- SQL Math Functions: ROUND, CEIL, FLOOR, ABS and MOD
- SQL Data Types: INTEGER, DECIMAL, VARCHAR, DATE and CAST
- SQL Foreign Keys: ON DELETE CASCADE and SET NULL
- Table Relationships: One-to-One, One-to-Many and Many-to-Many
- SQL UPSERT: INSERT ON CONFLICT DO UPDATE
- How to Find and Delete Duplicate Rows in SQL
- SQL Triggers: BEFORE and AFTER with Examples
- SQL JSON Functions: Query JSON Data with Examples
- SQL Pagination: LIMIT/OFFSET vs Keyset Pagination
- SQL Interview Questions with Answers and Examples
- SQL GROUP_CONCAT and STRING_AGG: Combine Rows Into a String
- SQL UPDATE and DELETE With JOIN: Changing Rows From Another Table
- Hierarchical Data in SQL: Trees and Recursive Queries
- Gaps and Islands in SQL: Missing Numbers and Streaks
- Median, Percentiles and NTILE in SQL
- Fill Missing Dates in SQL Reports With a Calendar
- Full-Text Search in SQL With SQLite FTS5
- SQL Injection and Parameterized Queries Explained
- SQL Query Optimization: Query Plans and Index-Friendly Queries
- SQL Project: Sales Analysis Report for an Online Shop
- SQL EXISTS and NOT EXISTS: Semi-Joins and Anti-Joins
- SQL LAG and LEAD: Compare Rows
- Running Totals and Moving Averages in SQL
- Top N Per Group in SQL
- Pivot Rows to Columns in SQL
- SQL LIKE and Pattern Matching
- SQL CAST and Type Conversion
- Cohort and Retention Analysis in SQL
- Data Quality Checks in SQL
- SQL Project: Library Database
- SQL Self Join
- SQL CROSS JOIN and Calendar Tables
- SQL Auto-Increment IDs and Sequences
- SQL Generated Columns
- SQL CREATE TABLE AS SELECT and Temporary Tables
- SQL Percent of Total and Ratios
- SQL Date Range Overlaps
- SQL Funnel Analysis
- SQL Soft Delete and Audit Columns
- SQL Project: Hospital Appointments Database
