pdfEmail required
SQL Interview Pack
40 SQL problems with worked solutions and the reasoning interviewers are listening for.
240 downloads
Contents#
| Section | Problems |
|---|---|
| Joins and set operations | 8 |
| Aggregation and grouping | 7 |
| Window functions | 12 |
| Gaps and islands | 5 |
| Query reasoning and optimisation | 8 |
Every solution includes the evaluation note — what a strong answer demonstrates beyond producing the right rows.
#Interview prep#Career
Where this is used
Career Lab
The Analytics Portfolio That Actually Gets Interviews
Three real projects beat thirty notebooks. What hiring managers screen for, and the structure that survives a five-minute skim.
BeginnerDifficulty: Beginner2 min readSQL · Python · Power BI
SQL
Second highest salary per department
Return the second highest salary in each department. If a department has fewer than two distinct salaries, it should not appear. Handle ties…
IntermediateDifficulty: Intermediate8 min