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 40 Discussion

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

Select the correct result generated by execution of the following SQL statements:

CREATE TABLE log (id int, message TEXT, logtime TIMESTAMP); CREATE

TABLE log_01 () INHERITS (log);

INSERT INTO log_01 VALUES (1, 'error', CURRENT_TIMESTAMP);

SELECT * FROM log;

Show Suggested Answer Hide Answer
Suggested Answer: A, D

Contribute your Thoughts:

Sherron
2 days ago
Wait, 'CREATE TABLE log_01 () INHERITS (log);'? Isn't that supposed to be 'CREATE TABLE log_01 INHERITS (log);'? I think option B is the correct answer here.
upvoted 0 times
...
Lorrine
3 days ago
I'm not sure, but I think the INSERT statement might cause an error.
upvoted 0 times
...
Jade
4 days ago
I agree with Elden, the SELECT statement should return 1 row.
upvoted 0 times
...
Kelvin
5 days ago
The 'CREATE TABLE log_01 () INHERITS (log);' statement looks good to me. The 'SELECT * FROM log;' should return the row we just inserted, so I'm going with option E.
upvoted 0 times
...
Elden
16 days ago
I think the correct answer is E.
upvoted 0 times
...

Save Cancel