Re: select unique items in db

From: Stijn Vanroye <s(dot)vanroye(at)easytowork(dot)nl>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: select unique items in db
Date: 2006-09-13 07:14:03
Message-ID: ee8bc4$11em$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

a schreef:
> "select unique id" - i found this line in google search
> but i want to make
> select * as unique
>
> select unique * is
> or select distinct
>
> pls point out how to select unique items from a list of million items
>
Maybe
select distinct <fieldlist> from ...
or
select distinct on (field1,field2) <fieldlist> from ... ?

Regards,

Stijn.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2006-09-13 08:56:41 Template1 oops
Previous Message Sim Zacks 2006-09-13 06:26:38 Re: off topic - web shop