From: Alex Pilosov <alex@pilosoft.com>
To: Martín Marqués <martin@bugs.unl.edu.ar>
Cc: pgsql sql Mailing List <pgsql-sql@postgresql.org>
Subject: Re: count(*)
Date: Tue, 3 Jul 2001 18:31:51 -0400 (EDT)
Message-ID: <Pine.BSO.4.10.10107031830520.18587-100000@spider.pilosoft.com> (raw)
In-Reply-To: <0107031917490C.11918@bugs>
On Tue, 3 Jul 2001, [iso-8859-1] Martín Marqués wrote:
> 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:
>
> Well, not the best example.....
> How about if I have a WHERE clause? I have to add it twice?
Yes.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: alex@pilosoft.com, martin@bugs.unl.edu.ar
Subject: Re: count(*)
In-Reply-To: <Pine.BSO.4.10.10107031830520.18587-100000@spider.pilosoft.com>
References: <0107031917490C.11918@bugs> <Pine.BSO.4.10.10107031830520.18587-100000@spider.pilosoft.com>
* 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