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
2 months 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
2 months 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
2 months ago
Ah, I see. So 'capitals' is the Darth Vader of 'cities', inheriting all its powers and secrets. Cool, cool.
upvoted 0 times
Kenneth
10 days ago
E) The second SQL statement results in an error, since the 'INHERITS' keyword is no longer available.
upvoted 0 times
...
Kenda
15 days ago
C) Searching \'capitals\' also searches rows in \'cities\'.
upvoted 0 times
...
Lawrence
1 months ago
C) Searching 'capitals' also searches rows in 'cities'.
upvoted 0 times
...
Kent
1 months ago
B) \'capitals\' inherits \'cities\'.
upvoted 0 times
...
Han
1 months ago
B) 'capitals' inherits 'cities'.
upvoted 0 times
...
Claribel
2 months ago
A) Defines the tables called \'cities\' and \'capitals\'.
upvoted 0 times
...
Timothy
2 months ago
A) Defines the tables called 'cities' and 'capitals'.
upvoted 0 times
...
...
Dorothy
3 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
Nadine
1 months ago
Exactly, it's a way to reuse the structure of an existing table in a new one.
upvoted 0 times
...
Blondell
2 months ago
So it's like creating a new table based on an existing one, with all the same columns.
upvoted 0 times
...
Carry
2 months ago
No, 'INHERITS' in SQL is used to create a table that inherits all columns of another table.
upvoted 0 times
...
...
Meghann
3 months ago
C) Searching 'capitals' also searches rows in 'cities'. That's not true, they are separate tables.
upvoted 0 times
...
Ashley
3 months ago
B) 'capitals' inherits 'cities'. That's correct.
upvoted 0 times
...
Meghann
4 months ago
A) Defines the tables called 'cities' and 'capitals'.
upvoted 0 times
...

Save Cancel