LEARN Β· PRACTICE Β· REMEMBER
SQL Fundamentals β Query Any Database
Learn to ask questions of your data with SQL queries.
SPACED REPETITION Β· 387 practice questions
Build knowledge you can recall.
Answer questions, get feedback, and build your review pool. Correct answers move toward longer review intervals; missed answers return sooner.
Sign in to practice βRecall it. Review it. Make it stick.
THE NEXT SMALL STEP
Your lessons
Explore a topic, then put your memory to work.
SELECT Basics β Asking Questions
Master the fundamentals of SQL queries: SELECT, FROM, WHERE, filtering, pattern matching, NULL handling, sorting, and limiting results.
Aggregations β Summarizing Data
Learn to summarize and analyze data using COUNT, SUM, AVG, MIN, MAX, GROUP BY, and HAVING. Master the difference between WHERE and HAVING for powerful data analysis.
JOINs β Combining Tables
Learn how to combine data from multiple tables using INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN. Understand why databases split data across tables and how to bring it back...
Subqueries β Queries Inside Queries
Master nested queries, correlated subqueries, EXISTS, IN, and learn when to use subqueries versus joins for complex data retrieval.
Data Modification β INSERT, UPDATE, DELETE
Learn to add, modify, and delete data safely. Master INSERT, UPDATE, DELETE statements with proper conditions, RETURNING clause, and transaction basics.
Table Design β CREATE and ALTER
Design robust database tables with proper data types, constraints, and indexes. Learn to create, modify, and optimize table structures.
Advanced Queries β Window Functions
Master window functions for sophisticated data analysis: ROW_NUMBER, RANK, DENSE_RANK, running totals, moving averages, LAG and LEAD. Level up your SQL analytics.
Performance & Best Practices
Master SQL optimization: reading EXPLAIN plans, index strategies, avoiding N+1 queries, and writing maintainable code.
Start with the first lesson and build from there. Your practice progress is saved when you sign in.