Distinct Values

From: "Nicolas" <bnk(at)medialife(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Distinct Values
Date: 2001-05-30 18:22:31
Message-ID: HTaR6.40412$712.4747796@amsnews02.chello.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I'm trying to retreive DISTINCT Values from a two colomn table called
"Books". The colomns are named "Author" and "URL".
DISTINCT values should be retieved from the "Author" Colomn , and then I
should be able to retrieve the corresponding URL.
How do I build the SQL Query ?
I tried to use: "SELECT DISTINCT Author FROM Books" But this does not allow
me to fetch the URL value on the other colomn.

Thanks
Nicolas

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-05-30 18:54:54 Re: Case Insensitive Queries
Previous Message Stephan Szabo 2001-05-30 18:16:35 Re: Case Insensitive Queries