[Pgsql-ayuda] consultar registros de una tabla.. que no estan en otra...

Carlos Edward Grajales Marmolejo karloz1977@hotmail.com
Sun, 12 May 2002 20:26:50 -0500


<html><div style='background-color:'><DIV>
<P>Hola ....</P>
<P>Infortunadamente no me encuentro cerca de mis textos y/o ejemplos sobre este caso particular, sin embargo te cuento que si tienes la documentacion de postgres podes utilizar&nbsp;una ''funcion'' especial no estandar llamada OUTER JOIN, esto basicamente lo que hace es buscar los elementos de una tabla A que no estan en la tabla B, el OUTER JOIN se divide en dos </P>
<P>LEFT JOIN y RIGHT JOIN, es decir join por la izquierda y la derecha.</P>
<P>Como te digo, infortunadamente&nbsp; no tengo la documentacion para darte un ejemplo especifico, sin embargo espero te sea de grana ayuda</P>
<P>&nbsp;</P>
<P>ATT:</P>
<P>KARLOZ </P>
<P>Ing de Desarrollo</P>
<P>Cali (Colombia)<BR><BR></P></DIV>
<DIV></DIV><BR><BR><BR>
<DIV><EM><STRONG>Cuando la utopia sea utopia hallaremos la Paz</STRONG></EM></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: <GIORGIOFCA@YAHOO.COM>
<DIV></DIV>&gt;To: pgsql-ayuda@tlali.iztacala.unam.mx 
<DIV></DIV>&gt;Subject: [Pgsql-ayuda] consultar registros de una tabla.. que no estan en otra... 
<DIV></DIV>&gt;Date: Sun, 12 May 2002 12:37:54 -0700 (PDT) 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hola amigos.. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;tengo la tabla vin y la tabla revision.. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;quiero saber cuales registros de la tabla vin... no 
<DIV></DIV>&gt;estan dentro de la tabla revision... 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;intente esto: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;select v.vin 
<DIV></DIV>&gt;from vin v, revision r 
<DIV></DIV>&gt;where v.vin !== r.vind; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;pero no sale.. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;alguna sugerencia??? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;__________________________________________________ 
<DIV></DIV>&gt;Do You Yahoo!? 
<DIV></DIV>&gt;LAUNCH - Your Yahoo! Music Experience 
<DIV></DIV>&gt;http://launch.yahoo.com 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;_______________________________________________ 
<DIV></DIV>&gt;Pgsql-ayuda mailing list 
<DIV></DIV>&gt;Pgsql-ayuda@tlali.iztacala.unam.mx 
<DIV></DIV>&gt;http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda 
<DIV></DIV></div><br clear=all><hr>MSN Photos es la manera más sencilla de compartir e imprimir sus fotos: <a href='http://g.msn.com/1HM106201/29'>Haga clic aquí</a><br></html>