SQL Interview Preparation
Top 50 SQL Interview Questions
Precise, simple, interview-ready answers covering SQL fundamentals, queries, joins, window functions, transactions, performance, and common coding problems.
Showing 50 questions
0 answers viewed
What is a Foreign Key?
What is the difference between WHERE and HAVING?
What is an INNER JOIN?
What is a LEFT JOIN?
DELETE vs TRUNCATE vs DROP?
What is a Database Index?
What is a UNIQUE constraint?
What is NULL in SQL?
UNION vs UNION ALL?
What is a Subquery?
What is a CTE?
What is a Window Function?
What is Database Normalization?
What is Denormalization?
What is a Transaction?
What does ACID mean?
What does GROUP BY do?
What does DISTINCT do?
COUNT(*) vs COUNT(column)?
What does COALESCE do?
What is CASE in SQL?
What is a View?
What is a Stored Procedure?
What is a Composite Key?
What is a Self Join?
What is a CROSS JOIN?
How do you find duplicate records?
How do you find the second-highest salary?
How do you find the Nth-highest salary?
How do you find employees without a department?
How do you find duplicate email addresses?
How do you find records in one table but not another?
How do you find the top 3 salaries in each department?
What is ROW_NUMBER()?
RANK() vs DENSE_RANK()?
How do you calculate a running total?
What are transaction isolation levels?
What is a Deadlock?
What is Database Locking?
What is an Execution Plan?
How do you improve SQL query performance?
What is SQL Injection?
EXISTS vs IN?
CHAR vs VARCHAR?
Why can't you use = NULL?
How do you remove duplicate rows while keeping one?
How do you find employees earning above their department average?
How can you compare a row with the previous row?
Primary Key vs UNIQUE constraint?
No questions found
Try a different keyword or change the filters.