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

Antonio Castro acastro@ciberdroide.com
Mon, 13 May 2002 18:10:43 +0200 (CEST)


On Sun, 12 May 2002 giorgiofca@yahoo.com wrote:

> Hola amigos..
>=20
> tengo la tabla vin y la tabla revision..
>=20
> quiero saber cuales registros de la tabla  vin... no
> estan dentro de la tabla revision...
>=20
> intente esto:
>=20
> select v.vin
> from vin v, revision r
> where v.vin !=3D=3D r.vind;

Interpreto que lo que deseas obtener ser=EDa:

SELECT vin FROM vin WHERE vin NOT IN ( SELECT vind FROM revision ) ;

>=20
> pero no sale..
>=20
> alguna sugerencia???
>=20
>=20
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>=20
> _______________________________________________
> Pgsql-ayuda mailing list
> Pgsql-ayuda@tlali.iztacala.unam.mx
> http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda
>=20


Un saludo

Antonio Castro

+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--=
+
        /\     /\      Ciberdroide Inform=E1tica (Tienda de Linux)
          \\W//            <<< http://www.ciberdroide.com >>>
=09 _|0 0|_                                                   =20
+-oOOO--(___o___)--OOOo----------------------------------------------------=
+=20
|  . . . . U U . . . . Antonio Castro Snurmacher  acastro@ciberdroide.com  =
| =20
|  . . . . . . . . . .                                                     =
|=20
+()()()----------()()()----------------------------------------------------=
+
| *** 1.700 sitios clasificados por temas sobre Linux en ***Donde_Linux*** =
|
| <<< http://www.ciberdroide.com/misc/donde/dondelinux.html >>>            =
|
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--=
+