Ambiguous columns - Mailing list pgsql-novice

From Steve Tucknott
Subject Ambiguous columns
Date
Msg-id 1120375022.1326.11.camel@retsol1
Whole thread Raw
Responses Re: [despammed] Ambiguous columns
Re: Ambiguous columns
Re: Ambiguous columns
Re: Ambiguous columns
List pgsql-novice
If I have two tables(taba, tabb) with the same column (column1) name and
try to do:

SELECT taba.column1 AS column1,tabb.column2 AS column2
    FROM taba AS a
         JOIN tabb AS b
         ON  taba.indexCol = tabb.indexCol
GROUP BY column1

It tells me that column1 is ambiguous. Is that to be expected? I can
semi see why - but I thought you could only only group on selected
fields, and the only 'selected' column1 is that from taba. Minor issue,
with easy work around.
--


Regards,

Steve Tucknott
ReTSol Ltd

DDI    01903 828769
MOBILE    07736715772





___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

pgsql-novice by date:

Previous
From: Steve Poe
Date:
Subject: Re: General Question
Next
From: Andreas Kretschmer
Date:
Subject: Re: [despammed] Ambiguous columns