Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL issue
Message
De
05/11/2000 18:30:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/11/2000 17:45:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00438165
Message ID:
00438171
Vues:
11
>I have an app that takes lookup table data off a server. The app needs to know what has changed between its old and new set of lookup tables. To do this is throw the old lookup table to lookip.xxx, append the new lookup data into lookup.dbf and then run a sql querry between the 2 for key = key and some information is different. It works fine.
>
>My problem is that the new lookup tables might have new_ records that dont have a match in the old table.
>
>Is there a SQL way of asking if a record in table 1 does not have a match in table 2?
>
>
>TIA
>
>Chris

select a.key, b.key, ;
isnull(a.key) as 'NotInOld', ;
isnull(b.key) as 'NotInNew' ;
from old a full join new b on a.key=b.key

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform