PrepAway - Latest Free Exam Questions & Answers

Which four Transact-SQL statements should you use?

DRAG DROP
You develop a database application for a university. You need to create a view that will be
indexed that meets the following requirements:
Displays the details of only students from Canada.
Allows insertion of details of only students from Canada.
Which four Transact-SQL statements should you use? (To answer, move the appropriate
SQL statements from the list of statements to the answer area and arrange them in the correct order.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

Reference:
http://msdn.microsoft.com/en-us/library/ms187956.aspx

9 Comments on “Which four Transact-SQL statements should you use?

  1. Yommy O. says:

    Displays the details of only students from Canada (by securing the view definition to prevent alteration): WITH ENCRYPTION

    Allows insertion of details of only students from Canada (by filtering what data can be inserted): WITH CHECK OPTION




    0



    0
  2. mamku2005 says:

    CREATE VIEW dbo.CanadianStudents
    WITH SCHEMABINDING
    AS
    SELECT s.LastName,
    s.FirstName,
    s.JobTitle,
    a.Country,
    e.LastQualification
    FROM Student s
    INNER JOIN NativeAddress a
    ON a.AddressID = s.AddressID
    INNER JOIN EducationHistory e
    ON s.StudentID = e.StudentID
    WHERE a.Country = ‘Canada’
    WITH CHECK OPTION;




    0



    0

Leave a Reply