r/learnSQL • • 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
4 Upvotes

2 comments sorted by

1

u/Green_Chamomile Oct 31 '26

Heads up, I think the Topics column got mixed up against the basket names. Your basket order is solid, but the topics don’t match it. β€œAggregation” has CTEs, β€œJOIN Fundamentals” has CREATE/INSERT/ALTER etc. If you follow the topics as written, you’d do CTEs before GROUP BY and JOINs, which is backwards.