Re: Ambiguous error message - Mailing list pgsql-sql

From Michael Glaesemann
Subject Re: Ambiguous error message
Date
Msg-id 3DB0CA70-3D86-11D8-A298-000A95C88220@myrealbox.com
Whole thread Raw
In response to Ambiguous error message  (Samuel Tardieu <sam@rfc1149.net>)
Responses Re: Ambiguous error message
List pgsql-sql
Hi Sam,

I'm not quite sure what you want the query to return, but you've got a 
problem with your parentheses. You've got two FROM clauses and an INNER 
JOIN, which together aren't arranged properly. I've rearranged your 
query a little, but I haven't changed anything. Perhaps this'll make it 
a little clearer to you.

On Jan 2, 2004, at 10:49 AM, Samuel Tardieu wrote:

> In PostgreSQL 7.4, the following select:
>
> select texten, total
> from (select protocolid, count(*) as total)
> from ips
> where catid=1
> group by protocolid order by protocolid) as c
> inner join protocols using (protocolid);
 If you explain a little more what your query is trying to return, I 
might be able to help more.

Michael Glaesemann
grzm myrealbox com



pgsql-sql by date:

Previous
From: Samuel Tardieu
Date:
Subject: Ambiguous error message
Next
From: Tom Lane
Date:
Subject: Re: Ambiguous error message