From: | Javier Estévez CIFA Córdoba <javier(dot)estevez(dot)ext(at)juntadeandalucia(dot)es> |
---|---|
To: | "Alvaro Herrera" <alvherre(at)commandprompt(dot)com> |
Cc: | "Jaime Casanova" <systemguards(at)gmail(dot)com>, <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: COUNT |
Date: | 2006-02-27 12:48:23 |
Message-ID: | 025101c63b9c$18989e70$5423410a@cfco04.cap.juntaandalucia.es |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Lo he probado y me sigue sin funcionar, los registros que no cumplen la
cláusula where no aparecen en el count(*)
----- Original Message -----
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>
Sent: Monday, February 27, 2006 1:28 PM
Subject: Re: [pgsql-es-ayuda] COUNT
Javier Estévez CIFA Córdoba escribió:
> El problema es justamente que para TODA "IdProvincia","IdEstacion" obtenga
> un valor del count(*). La cuestión es que cuando la claúsula WHERE no se
> cumpla quiero que el count(*) me devuelva 0.
En ese caso tendrias que usar un outer join, no?
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
---------------------------(fin del mensaje)---------------------------
TIP 5: ¿Has leído nuestro extenso FAQ?
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2006-02-27 13:00:23 | Re: COUNT |
Previous Message | Alvaro Herrera | 2006-02-27 12:28:15 | Re: COUNT |