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 4 Question 72 Discussion

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

Select two suitable statements regarding the following SQL statement:

CREATE TRIGGER trigger_1 AFTER UPDATE ON sales FOR EACH ROW EXECUTE PROCEDURE write_log();

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Shawna
14 days ago
I wonder if the 'write_log' function is as exciting as it sounds. Maybe it just writes 'Another day, another sale' in the log.
upvoted 0 times
...
Truman
15 days ago
E is correct. The given statement would delete the defined trigger.
upvoted 0 times
...
Carli
16 days ago
D is incorrect. The 'write_log' function is called regardless of its return value.
upvoted 0 times
...
Reita
17 days ago
C is incorrect. The trigger is defined to execute the function after the update, not before.
upvoted 0 times
Carlee
1 days ago
A) It is defining a trigger 'trigger_1'.
upvoted 0 times
...
Avery
3 days ago
A) It is defining a trigger 'trigger_1'.
upvoted 0 times
...
...
An
1 months ago
A and B are correct. The trigger is defined to execute the 'write_log' function after an update on the 'sales' table.
upvoted 0 times
Nikita
2 days ago
B) And the 'write_log' function is called after each update on the 'sales' table.
upvoted 0 times
...
Sue
3 days ago
A) Yes, that's correct. The trigger is named 'trigger_1'.
upvoted 0 times
...
Herminia
16 days ago
B) Every time 'UPDATE' is executed on the 'sales' table, the 'write_log' function is called once.
upvoted 0 times
...
Gabriele
1 months ago
A) It is defining a trigger 'trigger_1'.
upvoted 0 times
...
...
Nicolette
2 months ago
I'm not sure about statement C, I think the function is called after the update.
upvoted 0 times
...
Tonja
2 months ago
I agree with Gwen, the trigger is defined and the function is called after each update.
upvoted 0 times
...
Gwen
2 months ago
I think statement A and B are correct.
upvoted 0 times
...

Save Cancel