SQL interview questions and answers

Queries, joins, aggregates, subqueries, window functions and indexes. 100 questions with a model answer for each. Open one to read the answer and see how other job seekers answered.

SQL SELECT, filtering and sorting

SQL aggregates and GROUP BY

SQL and database basics

SQL changing data safely

SQL indexes, transactions and performance

SQL joins

SQL keys and table design

SQL subqueries, CTEs and set operations

SQL window functions