Published on

SQL

Authors
Time yourself:
Your progress:

00:30:00

0%

Basics of SQL

1. What are primary keys and foreign keys?

Flag important question
Mark as complete

2. Explain the difference between DDL, DML, DCL, and TCL.

Flag important question
Mark as complete

3. What are constraints in SQL?

Flag important question
Mark as complete

Data Retrieval

4. What is the difference between SELECT and SELECT DISTINCT?

Flag important question
Mark as complete

5. Why is it not recommended to use SELECT DISTINCT?

Flag important question
Mark as complete

6. What is the purpose of GROUP BY and HAVING?

Flag important question
Mark as complete

7. What is the difference between LIMIT and OFFSET?

Flag important question
Mark as complete

Joins and Relationships

8. What are the different types of joins in SQL?

Flag important question
Mark as complete

9. Explain the difference between INNER JOIN and OUTER JOIN.

Flag important question
Mark as complete

10. What is a self-join, and how is it used?

Flag important question
Mark as complete

11. What are cross joins and natural joins?

Flag important question
Mark as complete

12. How do you use multiple joins in a query?

Flag important question
Mark as complete

Subqueries and Nested Queries

13. What is a subquery, and how is it used?

Flag important question
Mark as complete

14. What is the difference between correlated and non-correlated subqueries?

Flag important question
Mark as complete

15. Can you use subqueries in SELECT, FROM, or WHERE clauses?

Flag important question
Mark as complete

16. What is an inline view?

Flag important question
Mark as complete

17. What are scalar and multi-row subqueries?

Flag important question
Mark as complete

SQL Functions

18. What is the purpose of the ROW_NUMBER() function?

Flag important question
Mark as complete

19. What are aggregate functions in SQL, and how are they used?

Flag important question
Mark as complete

20. How do you use string functions like CONCAT and SUBSTRING?

Flag important question
Mark as complete

21. What are date and time functions in SQL?

Flag important question
Mark as complete

22. Explain the purpose of mathematical functions in SQL.

Flag important question
Mark as complete

Data Modification

23. What is the difference between DELETE, TRUNCATE, and DROP?

Flag important question
Mark as complete

24. How do you handle upserts in SQL?

Flag important question
Mark as complete

Indexes and Performance

25. What is an index, and how does it improve performance?

Flag important question
Mark as complete

26. What are the types of indexes in SQL?

Flag important question
Mark as complete

Indexes and Performance

27. What is a clustered index, and how is it different from a non-clustered index?

Flag important question
Mark as complete

28. How do you analyze and optimize a query using EXPLAIN or EXPLAIN PLAN?

Flag important question
Mark as complete

29. What are common performance optimization techniques in SQL?

Flag important question
Mark as complete

Transactions and Concurrency

30. What is a transaction in SQL, and how do you use it?

Pro Content

31. Explain the four isolation levels in SQL.

Pro Content

32. What is a deadlock, and how do you resolve it?

Pro Content

Database Design and Normalization

33. What is normalization, and why is it important?

Pro Content

34. Explain the different normal forms (1NF, 2NF, 3NF, BCNF).

Pro Content

35. What is denormalization, and when should it be used?

Pro Content

36. What are database relationships (one-to-one, one-to-many, many-to-many)?

Pro Content

37. What is the purpose of surrogate keys?

Pro Content

Advanced Topics

38. What is a view, and how is it used?

Pro Content

39. What are stored procedures and functions in SQL?

Pro Content

40. What are triggers, and how do they work?

Pro Content

41. Explain the difference between a materialized view and a regular view.

Pro Content

42. What are common SQL extensions (e.g., PL/SQL, T-SQL)?

Pro Content

Security

43. What are SQL injections, and how do you prevent them?

Pro Content

44. How do you manage user privileges in SQL?

Pro Content

45. What is row-level security in SQL?

Pro Content

46. How do you encrypt data in SQL?

Pro Content

47. Explain the role of roles and grants in SQL security.

Pro Content

Working with NoSQL and Newer Features

48. How do you work with JSON data in SQL?

Pro Content

49. What are window functions, and how do they work?

Pro Content

50. What is Common Table Expression (CTE)?

Pro Content

51. How do you work with recursive queries in SQL?

Pro Content

52. Explain the purpose of partitioning in SQL.

Pro Content