Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

PostgreSQL Exam PGCES-02 Topic 10 Question 76 Discussion

Actual exam question for PostgreSQL's PGCES-02 exam
Question #: 76
Topic #: 10
[All PGCES-02 Questions]

Select an incorrect statement regarding the following SQL statement. Note that "user_view" is a view. CREATE OR REPLACE RULE rule_1 AS ON UPDATE TO user_view DO INSTEAD NOTHING;

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Tatum
2 days ago
I think option C is the incorrect statement. Executing 'UPDATE user_view' will still output errors if the update operation is not permitted on the underlying table.
upvoted 0 times
...
Cyndy
4 days ago
Option D is incorrect. When 'UPDATE user_view' is executed, the data is not updated in the table that is the origin of the view. The update is instead suppressed by the INSTEAD NOTHING rule.
upvoted 0 times
...
Juliann
9 days ago
But doesn't the SQL statement specify 'DO INSTEAD NOTHING'? That means no data will be updated, right?
upvoted 0 times
...
Val
10 days ago
I disagree, I believe the correct answer is D.
upvoted 0 times
...
Juliann
12 days ago
I think the correct answer is C.
upvoted 0 times
...

Save Cancel