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

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.