Re: count(*)

Поиск
Список
Период
Сортировка
От Martín Marqués
Тема Re: count(*)
Дата
Msg-id 0107031917490C.11918@bugs
обсуждение исходный текст
Ответ на count(*)  (Martín Marqués <martin@bugs.unl.edu.ar>)
Ответы Re: count(*)  (Alex Pilosov <alex@pilosoft.com>)
Re: count(*)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@unl.edu.ar
Programador, Administrador      |       Centro de Telematica                      Universidad Nacional
        del Litoral
 
-----------------------------------------------------------------


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Jason Watkins"
Дата:
Сообщение: drop table if exists
Следующее
От: Martín Marqués
Дата:
Сообщение: Re: count(*)