From: Martín Marqués <martin@bugs.unl.edu.ar>
To: Alex Pilosov <alex@pilosoft.com>
Cc: pgsql sql Mailing List <pgsql-sql@postgresql.org>
Subject: Re: count(*)
Date: Tue, 3 Jul 2001 19:17:49 +0300
Message-ID: <0107031917490C.11918@bugs> (raw)
In-Reply-To: <Pine.BSO.4.10.10107031817120.18587-100000@spider.pilosoft.com>
References: <Pine.BSO.4.10.10107031817120.18587-100000@spider.pilosoft.com>
On Mié 04 Jul 2001 01:18, Alex Pilosov wrote:
> On Tue, 3 Jul 2001, [iso-8859-1] Martín Marqués wrote:
> > Is it illegal to make a select query with a count(*) in the list of
> > expressions to select?
> >
> > Ex:
> >
> > select car,tit,count(*) from auto
>
> You probably mean:
> select car, tit, (select count(*) from auto) from auto
Well, not the best example.....
How about if I have a WHERE clause? I have to add it twice?
Saludos... :-)
--
Cualquiera administra un NT.
Ese es el problema, que cualquiera administre.
-----------------------------------------------------------------
Martin Marques | mmarques@unl.edu.ar
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
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: martin@bugs.unl.edu.ar, alex@pilosoft.com
Subject: Re: count(*)
In-Reply-To: <0107031917490C.11918@bugs>
* 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