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 6 Question 62 Discussion

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

Select two incorrect descriptions regarding the following SQL statements.

CREATE TABLE cities ( name text,

population float ); CREATE

TABLE capitals ( state

char(2) ) INHERITS

(cities);

Show Suggested Answer Hide Answer
Suggested Answer: A, E

Contribute your Thoughts:

Gilbert
12 days ago
Woah, hold up. If 'capitals' inherits 'cities', does that mean the capital cities have a higher population than the regular ones? This is getting too deep for me.
upvoted 0 times
...
Jess
14 days ago
Hmm, I'm pretty sure the 'INHERITS' keyword is just a typo. They meant to write 'INVOKES', right? That's how databases work these days, right?
upvoted 0 times
...
Adell
17 days ago
Ah, I see. So 'capitals' is the Darth Vader of 'cities', inheriting all its powers and secrets. Cool, cool.
upvoted 0 times
Timothy
2 days ago
A) Defines the tables called 'cities' and 'capitals'.
upvoted 0 times
...
...
Dorothy
1 months ago
Wait, 'INHERITS'? Isn't that something like a superpower I get when I beat the final boss of this certification exam?
upvoted 0 times
Blondell
13 days ago
So it's like creating a new table based on an existing one, with all the same columns.
upvoted 0 times
...
Carry
21 days ago
No, 'INHERITS' in SQL is used to create a table that inherits all columns of another table.
upvoted 0 times
...
...
Meghann
2 months ago
C) Searching 'capitals' also searches rows in 'cities'. That's not true, they are separate tables.
upvoted 0 times
...
Ashley
2 months ago
B) 'capitals' inherits 'cities'. That's correct.
upvoted 0 times
...
Meghann
2 months ago
A) Defines the tables called 'cities' and 'capitals'.
upvoted 0 times
...

Save Cancel