Skip to main content

MS SQL Interview Cheat Sheet

Top 50 interview questions with concise answers. Print this page or save as PDF for offline study.

View All MS SQL Questions

1. What is MS SQL Server and where is it commonly used?

2. Explain Database, Table, Row, and Column in relational terms.

3. What is a Primary Key and why is it important?

4. What is a Foreign Key and what problem does it solve?

5. What are Constraints in MS SQL?

6. What is Normalization and why do we use it?

7. Explain 1NF, 2NF, and 3NF briefly.

8. What is Denormalization and when is it used?

9. What is an Index and why is it important?

10. What is the difference between Clustered and Non-Clustered Index?

11. What is a View and why is it used?

12. What is a Stored Procedure and what is it used for?

13. What are User-Defined Functions (UDFs)?

14. What is a Transaction and why is it important?

15. Explain ACID properties in SQL.

16. What is a Deadlock in SQL Server?

17. What is Locking in MS SQL Server?

18. What is a Schema in SQL?

19. Difference between DELETE and TRUNCATE?

20. What is an Execution Plan and why is it important?

21. What is the main purpose of indexing in SQL Server?

22. How does SQL Server decide between a Table Scan, Index Scan, and Index Seek?

23. What is a Composite Index and when is it used?

24. What is Bookmark Lookup and why can it cause performance problems?

25. What is a Covering Index and why is it powerful?

26. What are SQL Server Statistics and why are they essential?

27. How do outdated or missing statistics affect query performance?

28. What is Parameter Sniffing and why does it occur?

29. What is an Execution Plan and how does SQL Server generate it?

30. What is the difference between Estimated and Actual Execution Plans?

31. What is Cardinality Estimation and why is it important?

32. What are Index Fragmentation and Fill Factor?

33. What is the Query Optimizer and how does it work?

34. What is a Filtered Index and when is it beneficial?

35. What is a Hint and when should it be used?

36. What is a Hotspot in indexing terms?

37. What is the Role of the Query Store in SQL Server?

38. What is an Index Seek Predicate vs Residual Predicate?

39. Why does SQL Server choose a Hash Match instead of Nested Loop or Merge Join?

40. Explain the internal structure of a SQL Server index (Clustered vs Non-Clustered). How does it affect performance?

41. What is an Index Seek vs Index Scan vs Table Scan? When is each used?

42. How does SQL Server choose an Execution Plan?

43. What are Statistics? Why do bad statistics slow queries?

44. What is a Covering Index and when should you create one?

45. What is a Key Lookup? Why is it expensive?

46. Explain Lock Escalation in SQL Server.

47. What is Page Splitting? How does Fill Factor help?

48. Explain SQL Server Memory Architecture (Buffer Pool, Plan Cache).

49. What is Parameter Sniffing and how do you fix it?

50. When should you use a Filtered Index?

Ready to level up? Start Practice