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:

Norah
6 days ago
Oh, I was sure it was D. 5 rows. But now I'm not so sure. I need to review my SQL basics again.
upvoted 0 times
...
Quiana
10 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
12 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
14 days ago
I disagree, I believe the answer is C) 4 rows because DISTINCT ON eliminates duplicates.
upvoted 0 times
...
Darrin
18 days ago
I think the answer is B) 3 rows.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77