From: Suller András <suan2@freemail.hu>
To: Freddy Villalba Arias <fvillalba@madrid.bilbomatica.es>
Cc: pgsql-sql@postgresql.org
Subject: Re: COUNT on a DISTINCT query
Date: Fri, 07 May 2004 16:19:24 +0200
Message-ID: <409B9AEC.1080302@freemail.hu> (raw)
In-Reply-To: <92EFB0BEDD24E9419E2CD9A2BD35DAEA0438A7@bmsrv001.madrid.bilbomatica.es>
References: <92EFB0BEDD24E9419E2CD9A2BD35DAEA0438A7@bmsrv001.madrid.bilbomatica.es>
> SELECT COUNT(xxx.*) FROM (<the query above>) xxx
This cause an error for me:
ERROR: cannot pass result of subquery or join "xxx" to a function
Try this instead:
SELECT COUNT(*) FROM (<the query above>) xxx
It worked for me.
Regards,
Suller Andras
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: suan2@freemail.hu, fvillalba@madrid.bilbomatica.es
Subject: Re: COUNT on a DISTINCT query
In-Reply-To: <409B9AEC.1080302@freemail.hu>
* 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