MS SQL Server – 29 – Insert Update Delete MCQ

29 – Insert Update Delete MCQ

Best of luck!

1 / 26

1. What SQL statement is used to insert a single row into a table in SQL Server?

2 / 26

2. To insert multiple rows into a table in SQL Server, which keyword is used?

3 / 26

3. What is the purpose of the VALUES clause in an INSERT statement in SQL Server?

4 / 26

4. In SQL Server, how can you insert data into specific columns of a table using an INSERT statement?

5 / 26

5. Which SQL statement is used to update existing records in a table in SQL Server?

6 / 26

6. What happens if you don’t specify a WHERE clause in an UPDATE statement in SQL Server?

7 / 26

7. What is the purpose of the SET clause in an UPDATE statement in SQL Server?

8 / 26

8. In SQL Server, which keyword is used to delete records from a table?

9 / 26

9. To delete all records from a table and free the space in SQL Server, which statement is used?

10 / 26

10. What is the purpose of the WHERE clause in a DELETE statement in SQL Server?

11 / 26

11. Which SQL statement is used to insert multiple rows into a table in SQL Server?

12 / 26

12. What is the purpose of the INSERT INTO statement in SQL Server?

13 / 26

13. In SQL Server, what is the primary use of the OUTPUT clause in an INSERT statement?

14 / 26

14. In SQL Server, which statement is used to insert data into a table based on the result of a SELECT statement?

15 / 26

15. What is the purpose of the RETURNING clause in an INSERT statement in SQL Server?

16 / 26

16. In SQL Server, which clause is used to specify the values to be inserted in an INSERT statement?

17 / 26

17. To insert data into a table using a subquery in SQL Server, which keyword is commonly used?

18 / 26

18. What is the primary purpose of the TOP clause in an INSERT statement in SQL Server?

19 / 26

19. In SQL Server, what is the primary purpose of the OUTPUT clause in an UPDATE statement?

20 / 26

20. What is the result of a DELETE statement without a WHERE clause in SQL Server?

21 / 26

21. In SQL Server, what is the purpose of the DELETE TOP (n) statement?

22 / 26

22. In SQL Server, what is the primary purpose of the TRUNCATE TABLE statement?

23 / 26

23. Which SQL statement is used to remove a table and its data from the database in SQL Server?

24 / 26

24. In SQL Server, what is the primary use of the OUTPUT clause in a MERGE statement?

25 / 26

25. What is the primary difference between the MERGE statement and the UPDATE statement in SQL Server?

26 / 26

26. In SQL Server, what is the primary purpose of the OUTPUT clause in an INSERT SELECT statement?

Your score is

0%