Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uncommon records from 2 table
Message
From
03/11/2002 13:16:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/11/2002 12:40:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00718301
Message ID:
00718312
Views:
32
>Hi all,
>want to findout uncommon records from two table base on a field.please help
>me
>thanks.

Do you mean something like this :
SELECT 'A' as 'NotIn',* from tableB ;
  WHERE  NOT exist ;
  (select * from tableA WHERE tableA.CommonField=tableB.CommonField) ;
union ;	
SELECT 'B' as 'NotIn',* from tableA ;
  WHERE  NOT exist ;
  (select * from tableB WHERE tableA.CommonField=tableB.CommonField)
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