From: | Michael Glaesemann <grzm(at)myrealbox(dot)com> |
---|---|
To: | Samuel Tardieu <sam(at)rfc1149(dot)net> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Ambiguous error message |
Date: | 2004-01-03 00:46:17 |
Message-ID: | 3DB0CA70-3D86-11D8-A298-000A95C88220@myrealbox.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-01-03 00:47:48 | Re: Ambiguous error message |
Previous Message | Samuel Tardieu | 2004-01-02 16:49:46 | Ambiguous error message |