Which two UPDATE statements will subsequently execute successfully and update a row in the Prospect table?

You are a database developer on an instance of SQL Server 2008. Your database contains a Prospect table defined using the following Transact-SQL:
CREATE TABLE Prospect(
ID int IDENTITY(1,1) PRIMARY KEY,
TerritoryID int NULL,
CompanyName varchar(35) UNIQUE,
Type char(1) NOT NULL,
Rating tinyint,
EstRevenue money);
Your Prospect table currently contains the following data:


You use the following Transact-SQL statement to create a view:
CREATE VIEW ProspectView
AS
SELECT * FROM Prospect
WHERE Rating BETWEEN 1 and 3
WITH CHECK OPTION;
Assuming appropriate permissions, which two UPDATE statements will subsequently execute successfully and update a row in the Prospect table? (Choose two.)
A. UPDATE Prospect
SET Rating = 9
WHERE ID = 1;
B. UPDATE ProspectView
SET Rating = 5
WHERE ID = 3;
C. UPDATE ProspectView
SET Rating = 2
WHERE ID = 2;
D. UPDATE ProspectView
SET Rating = 1
WHERE ID = 3;
E. UPDATE ProspectView
SET Rating = 8
WHERE ID = 2;

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.