pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nicolas <bnk@medialife.net>
To: pgsql-sql@postgresql.org
Subject: Distinct Values
Date: Wed, 30 May 2001 18:22:31 GMT
Message-ID: <HTaR6.40412$712.4747796@amsnews02.chello.com> (raw)

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





view thread (6+ messages)  latest in thread

Message-ID: <HTaR6.40412$712.4747796@amsnews02.chello.com>
Permalink:  ../HTaR6.40412$712.4747796@amsnews02.chello.com/
Also on:    postgresql.org/message-id/HTaR6.40412$712.4747796@amsnews02.chello.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bnk@medialife.net
  Subject: Re: Distinct Values
  In-Reply-To: <HTaR6.40412$712.4747796@amsnews02.chello.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox