Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f55JPCE59085 for ; Tue, 5 Jun 2001 15:25:12 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4UISEE11010 for ; Wed, 30 May 2001 14:28:14 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f4UIMaa56237 for pgsql-sql@postgresql.org; Wed, 30 May 2001 14:22:36 -0400 (EDT) (envelope-from news) From: "Nicolas" X-Newsgroups: comp.databases.postgresql.sql Subject: Distinct Values Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: Date: Wed, 30 May 2001 18:22:31 GMT X-Complaints-To: abuse@chello.com Organization: chello broadband To: pgsql-sql@postgresql.org X-Archive-Number: 200106/38 X-Sequence-Number: 3241 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