pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Marqués <martin@bugs.unl.edu.ar>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alex Pilosov <alex@pilosoft.com>
Cc: pgsql sql Mailing List <pgsql-sql@postgresql.org>
Subject: Re: count(*)
Date: Wed, 4 Jul 2001 15:44:05 +0300
Message-ID: <01070415440500.16423@bugs> (raw)
In-Reply-To: <26536.994203684@sss.pgh.pa.us>
References: <Pine.BSO.4.10.10107031817120.18587-100000@spider.pilosoft.com>
	<0107031917490C.11918@bugs>
	<26536.994203684@sss.pgh.pa.us>

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@unl.edu.ar
Programador, Administrador      |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------



view thread (13+ messages)

Message-ID: <01070415440500.16423@bugs>
Permalink:  ../01070415440500.16423@bugs/
Also on:    postgresql.org/message-id/01070415440500.16423@bugs

 · 

reply

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, tgl@sss.pgh.pa.us, alex@pilosoft.com
  Subject: Re: count(*)
  In-Reply-To: <01070415440500.16423@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