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: Alex Pilosov <alex@pilosoft.com>
Cc: pgsql sql Mailing List <pgsql-sql@postgresql.org>
Subject: Re: count(*)
Date: Tue, 3 Jul 2001 19:27:15 +0300
Message-ID: <0107031927150D.11918@bugs> (raw)
In-Reply-To: <Pine.BSO.4.10.10107031830520.18587-100000@spider.pilosoft.com>
References: <Pine.BSO.4.10.10107031830520.18587-100000@spider.pilosoft.com>

On Mié 04 Jul 2001 01:31, Alex Pilosov wrote:
> 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.

I was lmost sure I could add the count(*) in the select, but now that I see 
some old scripts I have, I notic that I was wrong.
Shame on me!

Thanks!

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)  latest in thread

Message-ID: <0107031927150D.11918@bugs>
Permalink:  ../0107031927150D.11918@bugs/
Also on:    postgresql.org/message-id/0107031927150D.11918@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, alex@pilosoft.com
  Subject: Re: count(*)
  In-Reply-To: <0107031927150D.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