Skip to main content
Interview MasteryBack to all 100 playbooks

SQL Interview Questions and Answers

HireAI Career TeamPublished: Mar 02, 20268 min read

Must-Know Window Functions

Window functions perform calculations across related table rows without collapsing them: - `ROW_NUMBER()`: Unique sequential integer for each row in a partition. - `RANK()`: Sequential rank, leaves gaps on ties (1, 2, 2, 4). - `DENSE_RANK()`: Sequential rank, no gaps on ties (1, 2, 2, 3)—essential for "Nth highest salary" queries.

Application Pipeline

Organize and track your job applications

Keep track of application deadlines, referral requests, recruiter screens, and technical rounds in one unified dashboard.

Open Job Tracker

Frequently Asked Questions

What is the difference between WHERE and HAVING in SQL?

`WHERE` filters rows before any group-by aggregation takes place. `HAVING` filters aggregated group summaries calculated after the `GROUP BY` clause.