Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL syntax question
Message
 
 
À
14/12/2004 15:51:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00969260
Message ID:
00969262
Vues:
8
>Hi. SQL is really giving me a difficult time. Currently, I am trying to
>"Select all of A" + "only the items in B that are not already in A".
>
>Can anyone help?
>
>Thanks, Randy

Assuming the structures of tables A and B are the same, or at least the fields selected from A and B are the same datatypes:

select * from A
union
select * from b where id not in (select id from a)
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform