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
2 months 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
2 months ago
E is correct. The given statement would delete the defined trigger.
upvoted 0 times
...
Carli
2 months ago
D is incorrect. The 'write_log' function is called regardless of its return value.
upvoted 0 times
...
Reita
2 months ago
C is incorrect. The trigger is defined to execute the function after the update, not before.
upvoted 0 times
Ilene
20 days ago
D) 'UPDATE' is not executed if 'write_log' returns NULL.
upvoted 0 times
...
Gabriele
1 months ago
B) Every time 'UPDATE' is executed on the 'sales' table, the 'write_log' function is called once.
upvoted 0 times
...
Von
1 months ago
B) Every time 'UPDATE' is executed on the 'sales' table, the 'write_log' function is called once.
upvoted 0 times
...
Carlee
2 months ago
A) It is defining a trigger 'trigger_1'.
upvoted 0 times
...
Avery
2 months ago
A) It is defining a trigger 'trigger_1'.
upvoted 0 times
...
...
An
3 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
Trinidad
1 months ago
User: 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
...
Suzan
1 months ago
B) Every time 'UPDATE' is executed on the 'sales' table, the 'write_log' function is called once.
upvoted 0 times
...
Teri
1 months ago
A) It is defining a trigger 'trigger_1'.
upvoted 0 times
...
Nikita
2 months ago
B) And the 'write_log' function is called after each update on the 'sales' table.
upvoted 0 times
...
Sue
2 months ago
A) Yes, that's correct. The trigger is named 'trigger_1'.
upvoted 0 times
...
Herminia
2 months ago
B) Every time 'UPDATE' is executed on the 'sales' table, the 'write_log' function is called once.
upvoted 0 times
...
Gabriele
3 months ago
A) It is defining a trigger 'trigger_1'.
upvoted 0 times
...
...
Nicolette
3 months ago
I'm not sure about statement C, I think the function is called after the update.
upvoted 0 times
...
Tonja
3 months ago
I agree with Gwen, the trigger is defined and the function is called after each update.
upvoted 0 times
...
Gwen
4 months ago
I think statement A and B are correct.
upvoted 0 times
...

Save Cancel