Back to the 2021 paper

Unit 2: Relational Query Languages

20212m

Which of the following is used at the end of the view to reject the tuples which do not satisfy the condition in where clause?

  • (i) With
    (ii) Check
    (iii) With check
    (iv) All of the above
Worked SolutionAI Assisted

Answer: (iii) With check

Explanation: WITH CHECK OPTION at end of CREATE VIEW ensures that any INSERT/UPDATE through the view must satisfy the WHERE condition of the view, otherwise rejected. Example: CREATE VIEW v AS SELECT * FROM emp WHERE dept='CS' WITH CHECK OPTION; then INSERT dept='EE' via view fails. "With" alone or "Check" alone incomplete.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.