select distinct() question

Поиск
Список
Период
Сортировка
От Jean-Christian Imbeault
Тема select distinct() question
Дата
Msg-id 3E9F75C6.8040100@mega-bucks.co.jp
обсуждение исходный текст
Ответы Re: select distinct() question  ("paul butler" <paul@entropia.co.uk>)
Re: select distinct() question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
I observed the following for one of my queries:

TEST=# select distinct(prod_id), date_received from invoice_li;
  prod_id | date_received
---------+---------------
    10994 | 2003-04-02
    12445 | 2003-04-08
    12445 |
(3 rows)


Is this the correct behaviour for a select distinct()?

I tried understanding what the SQL standard says but was thoroughly
confused ;)

Jean-Christian Imbeault


В списке pgsql-novice по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Can I make a function an explicit transaction within?
Следующее
От: "paul butler"
Дата:
Сообщение: Re: select distinct() question