MCQ King
30 – TRUNCATE MERGE OUTPUT MCQ
Best of luck!
1 / 25
1. What is the primary purpose of the TRUNCATE TABLE statement in SQL Server?
2 / 25
2. In SQL Server, how does the TRUNCATE TABLE statement differ from the DELETE statement?
3 / 25
3. Which SQL statement is used to delete specific rows from a table in SQL Server?
4 / 25
4. What is the primary purpose of the MERGE statement in SQL Server?
5 / 25
5. In SQL Server, which clause is used to specify the conditions for updating data in a MERGE statement?
6 / 25
6. What is the result of a DELETE statement without a WHERE clause in SQL Server?
7 / 25
7. In SQL Server, what is the primary purpose of the DELETE TOP (n) statement?
8 / 25
8. In SQL Server, what is the primary use of the OUTPUT clause in a DELETE statement?
9 / 25
9. Which SQL statement is used to remove a table and its data from the database in SQL Server?
10 / 25
10. In SQL Server, what is the primary purpose of the OUTPUT clause in a MERGE statement?
11 / 25
11. What is the primary difference between the MERGE statement and the UPDATE statement in SQL Server?
12 / 25
12. In SQL Server, what is the primary purpose of the OUTPUT clause in an INSERT SELECT statement?
13 / 25
13. What happens if you try to use the TRUNCATE TABLE statement on a table with a foreign key constraint?
14 / 25
14. In SQL Server, which clause is used to specify the source table(s) in a MERGE statement?
15 / 25
15. What is the primary advantage of using the TRUNCATE TABLE statement over the DELETE statement in SQL Server?
16 / 25
16. In SQL Server, which statement is used to delete all rows from a table and reset identity columns?
17 / 25
17. What is the primary use case for the OUTPUT clause in a DELETE statement in SQL Server?
18 / 25
18. In SQL Server, which clause is used to specify the target table in a MERGE statement?
19 / 25
19. What is the result of a DELETE statement if the WHERE clause specifies no matching rows?
20 / 25
20. In SQL Server, which clause is used to specify the target table in an INSERT SELECT statement with the OUTPUT clause?
21 / 25
21. What is the primary purpose of the OUTPUT INTO clause in SQL Server?
22 / 25
22. In SQL Server, what is the primary use of the WHEN NOT MATCHED clause in a MERGE statement?
23 / 25
23. What is the purpose of the OUTPUT clause in a MERGE statement in SQL Server?
24 / 25
24. In SQL Server, what is the main benefit of using the MERGE statement over separate INSERT, UPDATE, and DELETE statements?
25 / 25
25. Which SQL statement is used to specify the columns to be retrieved in the OUTPUT clause of a DELETE statement in SQL Server?
Your score is
Restart quiz