From: | Pablo Braulio <brulics(at)gmail(dot)com> |
---|---|
To: | pgsql-es-ayuda(at)postgresql(dot)org |
Cc: | "Moko Verdoso" <mokitoverde(at)hotmail(dot)com> |
Subject: | Re: COUNT |
Date: | 2006-02-27 10:04:42 |
Message-ID: | 200602271104.45910.brulics@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Por favor, desactiva el formato HTML para los mensajes.
Es muy molesto.
El Lunes, 27 de Febrero de 2006 10:35, Moko Verdoso escribió:
> <html><div style='background-color:'><DIV class=RTE>
> <P>coalesce es lo mismo que nvl de oracle no?<BR><BR></P></DIV>
> <DIV></DIV>
> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
> #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px;
> FONT-FAMILY: tahoma,sans-serif"> <HR color=#a0c6e5 SIZE=1>
>
> <DIV></DIV>From: <I>"Jaime Casanova"
> <systemguards(at)gmail(dot)com></I><BR>To: <I>"Javier Estévez
> CIFA Córdoba"
> <javier(dot)estevez(dot)ext(at)juntadeandalucia(dot)es></I><BR>CC: <I>pgs
>ql-es-ayuda(at)postgresql(dot)org</I><BR>Subject: <I>Re:
> [pgsql-es-ayuda] COUNT</I><BR>Date: <I>Mon, 27 Feb 2006 03:35:00
> -0500</I><BR>>On 2/27/06, Javier Estévez CIFA
> Córdoba<BR>><javier(dot)estevez(dot)ext(at)juntadeandalucia(dot)es>
> wrote:<BR>> > Es posible que al realizar un
> count(*) me devuelva el valor 0 cuando<BR>> > corresponda?<BR>>
> ><BR>> > Cómo puedo hacerlo?<BR>>
> ><BR>> > Gracias. Javier Estévez<BR>>
> ><BR>><BR>>estas pensando en sum...<BR>>count siempre regresa
> un valor numerico >= 0<BR>><BR>>respecto a tu pregunta...
> seria<BR>><BR>>select coalesce(sum(campo), 0) from
> tabla<BR>><BR>>--<BR>>Atentamente,<BR>>Jaime
> Casanova<BR>><BR>>"What they (MySQL) lose in usability, they gain
> back in benchmarks, and that's<BR>>all that matters: getting the wrong
> answer really
> fast."<BR>> &
>nbsp;  
>; Randal L.
> Schwartz<BR>><BR>>---------------------------(fin del
> mensaje)---------------------------<BR>>TIP 3: si publicas/lees desde
> Usenet, por favor envía
> "subscribe-nomail"<BR>> a
> majordomo(at)postgresql(dot)org para que tus mensajes puedan
> llegar<BR>> a los
> suscriptores de la lista<BR></FONT></BLOCKQUOTE></div><br
> clear=all><hr>Charla con tus amigos en línea mediante MSN Messenger: <a
> href="http://g.msn.com/8HMAES/2728??PS=47575" target="_top">Haz clic
> aquí</a> </html>
--
Saludos.
Pablo
------------
Jabber: bruli(at)myjabber(to)net
Fingerprint: 944D 10DA 4C10 08D1 574D 4B48 3BC1 CEF7 F222 EB1D
From | Date | Subject | |
---|---|---|---|
Next Message | Javier Estévez CIFA Córdoba | 2006-02-27 10:47:39 | Re: COUNT |
Previous Message | Moko Verdoso | 2006-02-27 09:35:05 | Re: COUNT |