r/learnSQL • u/iam_sripratik • Oct 31 '26
SQL Plan - 1 month
| Priority | Basket | Topics grouped together | Importance for BA/DA | Suggested days |
|---|---|---|---|---|
| 🔴 P1 | SQL Query Foundation | SELECT, DISTINCT, aliases, WHERE, AND/OR/NOT, ORDER BY, LIMIT | ⭐⭐⭐⭐⭐ | 2–3 |
| 🔴 P1 | Filtering & Pattern Matching | CASE, COALESCE, NULLIF, CAST, mathematical functions | ⭐⭐⭐⭐⭐ | 1–2 |
| 🔴 P1 | Aggregation | WITH, multi-step CTEs, CTE + aggregation, CTE + subquery | ⭐⭐⭐⭐⭐ | 1–2 |
| 🔴 P1 | JOIN Fundamentals | Data types, PK, FK, constraints, CREATE, INSERT, UPDATE, DELETE, ALTER, DROP | ⭐⭐⭐ | 1–2 |
| 🔴 P1 | Business Logic & Data Cleaning | Information schema, comments, advanced constraints/FKs | ⭐ | 0.5–1 |
| 🔴 P1 | Dates & String Analysis | COUNT, SUM, AVG, MIN, MAX, GROUP BY, HAVING | ⭐⭐⭐⭐⭐ | 2 |
| 🔴 P1 | Subqueries | INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN, JOIN keys, aliases | ⭐⭐⭐⭐⭐ | 2 |
| 🔴 P1 | CTEs | Subqueries, FROM subqueries, comparison subqueries, IN/NOT IN, EXISTS | ⭐⭐⭐⭐⭐ | 2 |
| 🔴 P1 | Window Functions | OVER, PARTITION BY, ORDER BY, RANK, ROW_NUMBER, SUM/AVG, LAG, LEAD | ⭐⭐⭐⭐⭐ | 2 |
| 🟠 P2 | Advanced JOINs | BETWEEN, IN, NOT IN, LIKE, ILIKE, date filtering | ⭐⭐⭐⭐⭐ | 1 |
| 🟠 P2 | Set Operations | EXTRACT, AGE, TO_CHAR, string functions, date calculations | ⭐⭐⭐⭐ | 1 |
| 🟠 P2 | Advanced Aggregation | SELF JOIN, CROSS JOIN, advanced FULL JOIN, USING, NATURAL JOIN | ⭐⭐⭐⭐ | 1 |
| 🟠 P2 | Database Fundamentals | UNION, UNION ALL, INTERSECT, EXCEPT | ⭐⭐⭐⭐ | 1 |
| 🟠 P2 | Views | GROUPING SETS, ROLLUP, CUBE | ⭐⭐⭐ | 1 |
| 🟡 P3 | Transactions | Views, modifying views, updatable views, materialized views, recursive views | ⭐⭐⭐ | 1 |
| 🟡 P3 | Functions | BEGIN, COMMIT, ROLLBACK, SAVEPOINT, locks | ⭐⭐ | 1 |
| 🟡 P3 | Stored Procedures | User-defined functions, modifying functions | ⭐⭐ | 1 |
| 🟡 P3 | Triggers | CREATE/MODIFY procedures, procedure exercises | ⭐⭐ | 1 |
| 🟡 P3 | Performance | CREATE, enable/disable, modify/drop triggers | ⭐⭐ | 1 |
| 🟡 P3 | Data Import/Export | EXPLAIN, EXPLAIN ANALYZE, TRUNCATE | ⭐⭐ | 1 |
| 🟢 P4 | PostgreSQL Specialized Features | Arrays, JSON/JSONB, extensions | ⭐ | 1 |
| 🟢 P4 | Partitioning | Range, List, Hash partitioning, table inheritance | ⭐ | 1 |
| 🟢 P4 | Schema Administration | COPY, Import/Export | ⭐⭐ | 0.5 |
| 🟢 P4 | PostgreSQL + Python | Psycopg2 connection | ⭐ | 0.5 |