Re: A select DISTINCT query? - Mailing list pgsql-general

From Pavel Stehule
Subject Re: A select DISTINCT query?
Date
Msg-id 162867790801270610r23bf7601q80a1949f777aedf4@mail.gmail.com
Whole thread Raw
In response to A select DISTINCT query?  (Phil Rhoades <phil@pricom.com.au>)
Responses Re: A select DISTINCT query?  (Phil Rhoades <phil@pricom.com.au>)
List pgsql-general
Hello

try

SELECT DISTINCT col FROM table

Pavel

On 27/01/2008, Phil Rhoades <phil@pricom.com.au> wrote:
> People,
>
> I want to select from a table ONLY unique records ie if a column has
> values:
>
> 1
> 2
> 3
> 3
> 4
> 5
>
> I want ONLY these records returned:
>
> 1
> 2
> 4
> 5
>
> Thanks,
>
> Phil.
> --
> Philip Rhoades
>
> Pricom Pty Limited  (ACN 003 252 275  ABN 91 003 252 275)
> GPO Box 3411
> Sydney NSW      2001
> Australia
> Fax:     +61:(0)2-8221-9599
> E-mail:  phil@pricom.com.au
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq
>

pgsql-general by date:

Previous
From: Phil Rhoades
Date:
Subject: A select DISTINCT query?
Next
From: Tino Wildenhain
Date:
Subject: Re: A select DISTINCT query?