Which statement will successfully create a view?

You are a database developer on an instance of SQL Server 2008. Your Prod database contains a Meeting table defined using the following statement:
CREATE TABLE Meeting (
ID int IDENTITY(1,1) PRIMARY KEY,
Description varchar(30) NOT NULL,
MaxAttendance smallint DEFAULT 0,
Type bit NULL,
Priority tinyint CHECK (Priority BETWEEN 0 and 10),
Cost money NULL);
Assuming appropriate permissions, which statement will successfully create a view?
A. CREATE VIEW RegularMeeting
WITH SCHEMABINDING AS SELECT * FROM Meeting WHERE Priority = 5 WITH CHECK OPTION;
B. CREATE VIEW SpecialMeeting
AS SELECT * FROM Meeting WHERE Priority = 1 WITH CHECK OPTION;
C. CREATE VIEW WeeklyMeeting
WITH SCHEMABINDING, ENCRYPTION AS SELECT ID, Description FROM Meeting WHERE Priority = 7 WITH CHECK OPTION;
D. CREATE VIEW StatusMeeting
WITH SCHEMABINDING AS SELECT m.* FROM dbo.Meeting m WHERE Priority = 4;

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.