[Pgsql-ayuda] Diferencias en querys

From: "felipe(dot)molina" <felipe(dot)molina(at)inegi(dot)gob(dot)mx>
To: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Subject: [Pgsql-ayuda] Diferencias en querys
Date: 2003-10-29 18:46:54
Message-ID: 1067453217.11493.3.camel@BDDeser
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Que tal lista:

Una disculpa por el correo donde preguntaba acerca de XIMIAN me
equivoque de lista.

Al ejecutar el siguiente query :

select count(*) as totalinst_confefund from (select idinstit from
cuestxinst where estatus = 2) as c left join institucionunidad as i on
(i.padrevocal = c.idinstit and i.padrevocal <> i.idinstit and funest =
0);

me retorna 882

y al ejecutar este otro query:

select count(*) as fe_es_null from (select idinstit from cuestxinst
where estatus = 2) as c left join institucionunidad as i on (c.idinstit
= i.padrevocal and i.idinstit<>i.padrevocal ) where funest = 0;

me retorna 880

Segun yo deberia de retornar lo mismo.

El resultado correcto es el segundo. Por que sera?

Saludos y de antemano muchas gracias

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Carmen Gloria Sepulveda Dedes 2003-10-29 18:52:35 Re: [Pgsql-ayuda] Funcion isnumeric???
Previous Message Gunnar Wolf 2003-10-29 18:45:01 Re: [Pgsql-ayuda] Funcion isnumeric???