where ttamlice.licident NOT IN (select ttampers.perident from ttampers);  ????




2008/11/14 Fabian Sandoval <[EMAIL PROTECTED]>
>
> Amitos necesito de su valiosa ayuda.
>
> Tengo esta consulta  que me funciona  bien, comparado dos tablas.
>
>
>
> select
>
> ttamlice.licnumli, ttamlice.lictipid , ttamlice.licident ,
>
> ttamlice.licfectr ,  ttamlice.licofiex ,  ttamlice.lictiptr ,  
> ttamlice.liccateg
>
> ,ttamlice.licnites ,ttamlice.licdivip ,ttamlice.licceresc ,ttamlice.licestado
>
> ,ttamlice.licfact ,ttamlice.liccodigo , ttamlice.lictipid_ant ,  
> ttamlice.licident_ant
>
> ,  ttamlice.liccateg_nue ,  ttamlice.liccermedico ,  ttamlice.licfecven ,
>
> ttamlice.licservicio
>
> from ttamlice
>
> where ttamlice.licident in (select ttampers.perident from ttampers);
>
>
>
> Pero que le cambio a esta consulta para que me muestre cuales datos están en 
> ttamlice que no están en ttampers


--
:: HDS Consultores TI
Servidores | Redes | Programacion | GNU/Linux
--
TIP 5: ¿Has leído nuestro extenso FAQ?
         http://www.postgresql.org/docs/faqs.FAQ.html

Responder a