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:

Glenn
2 days ago
Option B seems to be the correct answer. The 'CREATE OR REPLACE RULE' statement will replace the existing 'rule_1' if it already exists.
upvoted 0 times
...
Felicia
8 days ago
Wow, this question is really testing our SQL knowledge! I guess the developers who wrote this exam are trying to keep us on our toes. *chuckles*
upvoted 0 times
...
Tatum
11 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
13 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
18 days ago
But doesn't the SQL statement specify 'DO INSTEAD NOTHING'? That means no data will be updated, right?
upvoted 0 times
...
Val
19 days ago
I disagree, I believe the correct answer is D.
upvoted 0 times
...
Juliann
21 days ago
I think the correct answer is C.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77