0% found this document useful (0 votes)
8 views1 page

It Preparion

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

It Preparion

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Basic SQL

1.What is SQL, and how does it differ from NoSQL?


2.Explain the difference between WHERE and HAVING clauses.
3.What are primary keys and foreign keys?
4.Define JOIN and explain its types (e.g., INNER, OUTER, LEFT, RIGHT).
5.What is the purpose of the GROUP BY clause?
6.Explain the use of indexes in a database.
7.What is a subquery? Provide an example.
8.What is normalization? Explain the normal forms.
9.What are SQL constraints? List common types.
10.Difference between DELETE and TRUNCATE.

Intermediate SQL
11. What are aggregate functions in SQL?
12. How do you write a query to find duplicate records in a table?
13. What is a self-join? When would you use it?
14. Explain the difference between a clustered and non-clustered index.
15. What is a view in SQL, and how is it used?
16. How do you optimize SQL queries for better performance?
17. What is the difference between UNION and UNION ALL?
18. Explain the concept of a stored procedure.
19. What is a trigger in SQL?
20. How do you use window functions in SQL?

Advanced SQL
21. What are Common Table Expressions (CTEs), and when should you use them?
22. How does a transaction work in SQL? Explain ACID properties.
23. What is a cursor in SQL?
24. How do you handle NULL values in SQL queries?
25. Explain the use of the CASE statement in SQL.
26. What are the differences between ROW_NUMBER(), RANK(), and DENSE_RANK()?
27. How do you implement database partitioning?
28. What are the advantages of database sharding?
29. Explain the difference between OLAP and OLTP systems.
30. What is the significance of database schema design?

[email protected]

You might also like