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

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

The "sample" table consists of the following data: How many rows are returned by executing the following SQL statement? SELECT DISTINCT ON (data) * FROM sample;

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Quiana
1 days ago
I think the correct answer is B. 3 rows. The DISTINCT ON clause will return the first row for each distinct value of the 'data' column.
upvoted 0 times
...
Joseph
3 days ago
I agree with Catalina, the answer is C) 4 rows. The DISTINCT ON clause will return unique values based on the specified column.
upvoted 0 times
...
Catalina
5 days ago
I disagree, I believe the answer is C) 4 rows because DISTINCT ON eliminates duplicates.
upvoted 0 times
...
Darrin
9 days ago
I think the answer is B) 3 rows.
upvoted 0 times
...

Save Cancel