From: | Antonio Castro <acastro(at)ciberdroide(dot)com> |
---|---|
To: | giorgiofca(at)yahoo(dot)com |
Cc: | pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx |
Subject: | Re: [Pgsql-ayuda] consultar registros de una tabla.. que no estan en otra... |
Date: | 2002-05-13 16:10:43 |
Message-ID: | Pine.LNX.4.21.0205131808190.22220-100000@midas.ciberdroide.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On Sun, 12 May 2002 giorgiofca(at)yahoo(dot)com wrote:
> Hola amigos..
>
> tengo la tabla vin y la tabla revision..
>
> quiero saber cuales registros de la tabla vin... no
> estan dentro de la tabla revision...
>
> intente esto:
>
> select v.vin
> from vin v, revision r
> where v.vin !== r.vind;
Interpreto que lo que deseas obtener sería:
SELECT vin FROM vin WHERE vin NOT IN ( SELECT vind FROM revision ) ;
>
> pero no sale..
>
> alguna sugerencia???
>
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>
> _______________________________________________
> Pgsql-ayuda mailing list
> Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
> http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda
>
Un saludo
Antonio Castro
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/\ /\ Ciberdroide Informática (Tienda de Linux)
\\W// <<< http://www.ciberdroide.com >>>
_|0 0|_
+-oOOO--(___o___)--OOOo----------------------------------------------------+
| . . . . U U . . . . Antonio Castro Snurmacher acastro(at)ciberdroide(dot)com |
| . . . . . . . . . . |
+()()()----------()()()----------------------------------------------------+
| *** 1.700 sitios clasificados por temas sobre Linux en ***Donde_Linux*** |
| <<< http://www.ciberdroide.com/misc/donde/dondelinux.html >>> |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
From | Date | Subject | |
---|---|---|---|
Next Message | Juan Manuel Castelazo López | 2002-05-13 23:55:45 | [Pgsql-ayuda] Como obtener las columnas |
Previous Message | Fco. Valladolid Hdez. | 2002-05-13 11:11:27 | Re: [Pgsql-ayuda] OT: Licencias GNU, GPL, Open source, FSF |