Re: count(*)

From: Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Alex Pilosov <alex(at)pilosoft(dot)com>
Cc: pgsql sql Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: count(*)
Date: 2001-07-03 16:17:49
Message-ID: 0107031917490C.11918@bugs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)unl(dot)edu(dot)ar
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2001-07-03 16:19:13 Re: Re: pls Help us... (sql question)
Previous Message Gary Stainburn 2001-07-03 16:08:06 Re: My First Function