postgresql/src/test/regress/expected/select_distinct_on.out

19 lines
363 B
Plaintext
Raw Normal View History

2000-01-06 07:40:54 +01:00
--
-- SELECT_DISTINCT_ON
--
SELECT DISTINCT ON string4 two, string4, ten
FROM tmp
ORDER BY two using <, string4 using <, ten using <;
2000-01-06 07:40:54 +01:00
two | string4 | ten
-----+---------+-----
0 | AAAAxx | 0
0 | HHHHxx | 0
0 | OOOOxx | 0
0 | VVVVxx | 0
1 | AAAAxx | 1
1 | HHHHxx | 1
1 | OOOOxx | 1
1 | VVVVxx | 1
(8 rows)