Which item description will be in the Item table?

You have a Test database that resides on an instance of SQL Server. The Test database contains the Item table, which includes the ItemNo and Description columns as follows:


The table is currently empty, and you execute the following Transact-SQL code:
BEGIN TRANSACTION
INSERT INTO Item VALUES (1, ‘Computer’)
INSERT INTO Item VALUES (2, ‘Printer’)
DELETE FROM Item WHERE ItemNo = 1
SAVE TRANSACTION SaveA
INSERT INTO Item VALUES (3, ‘Router’)
INSERT INTO Item VALUES (4, ‘Monitor’)
SAVE TRANSACTION SaveB
INSERT INTO Item VALUES (5, ‘Keyboard’)
UPDATE Item SET Description = ‘Wireless Keyboard’ WHERE ItemNo = 5
ROLLBACK TRANSACTION SaveA
UPDATE Item SET Description = ‘Mouse’ WHERE ItemNo = 4
COMMIT TRANSACTION
Which item description will be in the Item table?
A. Router
B. Wireless Keyboard
C. Printer
D. Mouse

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.