Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

select distinct() question


  • From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
  • To: pgsql-novice(at)postgresql(dot)org
  • Subject: select distinct() question
  • Date: Fri, 18 Apr 2003 12:49:26 +0900
  • Message-id: <3E9F75C6.8040100@mega-bucks.co.jp> <text/plain>

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




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group