Re: count(*)

From: Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alex Pilosov <alex(at)pilosoft(dot)com>, pgsql sql Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: count(*)
Date: 2001-07-04 12:44:05
Message-ID: 01070415440500.16423@bugs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mié 04 Jul 2001 02:41, Tom Lane wrote:
> >> You probably mean:
> >> select car, tit, (select count(*) from auto) from auto
>
> I think he probably wants
>
> select car, tit, count(*) from auto group by car, tit

Does this mean I would get the same as if I didn't have the count(*), but
with the additional count(*) column at the end of each row?

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

Browse pgsql-sql by date

  From Date Subject
Next Message Constantin Teodorescu 2001-07-04 13:02:02 Re: Re: [SQL] indexing arrays in pgaccess's query interface is failing
Previous Message Gary Stainburn 2001-07-04 12:41:29 Re: My First Function