SQL icon

SQL Quizzes

Practice SQL from SELECT basics to window functions and query optimization for real interview prep.

Log in to track your progress across SQL quizzes.

Your learning path

Basic

1 quiz

Advanced

3 quizzes

Certification

1 quiz

Interview

1 quiz

Beginner 15 Qs

SQL Basics

SELECT, FROM, basic filtering and core SQL syntax.

Intermediate 15 Qs

WHERE Clause

Filtering rows with comparison, logical and pattern operators.

Intermediate 15 Qs

ORDER BY

Sorting result sets ascending, descending and by multiple columns.

Intermediate 15 Qs

Aggregate Functions

COUNT, SUM, AVG, MIN, MAX and when to use each.

Intermediate 15 Qs

GROUP BY

Grouping rows and combining with aggregate functions.

Intermediate 15 Qs

HAVING Clause

Filtering grouped results — HAVING vs WHERE.

Intermediate 15 Qs

JOINs Fundamentals

INNER JOIN and the basics of combining tables.

Intermediate 15 Qs

LEFT JOIN

Keeping all rows from the left table in a join.

Intermediate 15 Qs

RIGHT JOIN

Keeping all rows from the right table in a join.

Intermediate 15 Qs

FULL OUTER JOIN

Combining all matched and unmatched rows from both tables.

Intermediate 15 Qs

SELF JOIN

Joining a table to itself for hierarchical/relational data.

Intermediate 15 Qs

UNION & UNION ALL

Combining result sets and deduplication behavior.

Intermediate 15 Qs

Subqueries

Nested queries in SELECT, WHERE and FROM clauses.

Intermediate 15 Qs

Common Table Expressions

WITH clauses for readable, reusable query logic.

Advanced 15 Qs

Window Functions

ROW_NUMBER, RANK, LAG/LEAD and OVER() partitions.

Intermediate 15 Qs

CASE WHEN

Conditional logic inside SQL queries.

Intermediate 15 Qs

Views

Creating and querying virtual tables with CREATE VIEW.

Advanced 15 Qs

Indexes

How indexes speed up queries and when to use them.

Advanced 15 Qs

Stored Procedures

Encapsulating reusable SQL logic.

Interview Prep 15 Qs

SQL Interview Questions

Frequently asked SQL interview questions for analyst roles.

Certification 15 Qs

SQL Certification Prep

Comprehensive review for SQL certification exams.