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 8 Question 30 Discussion

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

The tables "s1" and "s2" are defined below. The column "id" for tables "s1" and "s2" is of INTEGER type. The column "enable" for table "s1" is of BOOLEAN type, and the column "name" for table "s2" is of TEXT type.

s1: id |

enable

----+--------

1 | t 2 | f

s2: id |

name ----

+------ 1 |

post 2 |

gre 3 |

SQL

The following SQL was executed. Select the correct number of rows in the result. SELECT * FROM s2 WHERE id IN (SELECT id FROM s1);

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Vicente
14 hours ago
I'm not sure, but I think the answer might be C) 3 rows.
upvoted 0 times
...
Evette
3 days ago
I agree with Nancey, because there are 2 matching ids in s1 and s2.
upvoted 0 times
...
Nancey
8 days ago
I think the answer is B) 2 rows.
upvoted 0 times
...

Save Cancel