Skip site navigation (1) Skip section navigation (2)

Re: COUNT

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Javier Estévez CIFA Córdoba <javier(dot)estevez(dot)ext(at)juntadeandalucia(dot)es>
Cc: Jaime Casanova <systemguards(at)gmail(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: COUNT
Date: 2006-02-27 12:12:35
Message-ID: 20060227121235.GB4516@surnet.cl (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
Javier Estévez CIFA Córdoba escribió:
>     Lo he probado y no me funciona: mi campo es un count(*) y al hacer
> sum(count(*)) me da error.

Vamos a ver:

alvherre=# select sum(count(*)) from empty;
ERROR:  no se pueden anidar llamadas a funciones de agregación

Que parte del mensaje de error no entendiste?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

  • Re: COUNT at 2006-02-27 10:47:39 from Javier Estévez CIFA Córdoba

Responses

  • Re: COUNT at 2006-02-27 12:23:37 from Javier Estévez CIFA Córdoba

pgsql-es-ayuda by date

Next:From: Javier Estévez CIFA CórdobaDate: 2006-02-27 12:23:37
Subject: Re: COUNT
Previous:From: Alvaro HerreraDate: 2006-02-27 12:06:24
Subject: Re: Acento?==?iso-8859-1?Q?s,tildes y eñes en postgres

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group