T-SQL Questions - Clean
T-SQL Questions - Clean
7. What is the difference between the UNION and UNION ALL operators in T-SQL?
9. What is the difference between a DELETE statement and a TRUNCATE statement in SQL Server?
12. What is the difference between the WHERE and HAVING clauses in T-SQL?
13. How does the CASE statement work in T-SQL? Provide an example.
15. What is a Common Table Expression (CTE) in T-SQL and how do you create one?
16. What is the purpose of the ISNULL() function in T-SQL? How is it different from COALESCE()?
17. What is the purpose of the LEAD() and LAG() functions in T-SQL? Provide examples.
18. What is the difference between a clustered index and a non-clustered index?
19. What is a columnstore index in SQL Server, and how does it differ from a traditional rowstore index?
20. What is the purpose of the NOLOCK table hint, and when would you use it? Provide an example.