Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL issue
Message
From
05/11/2000 18:30:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/11/2000 17:45:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00438165
Message ID:
00438171
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform