Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Uncommon records from 2 table
Message
De
03/11/2002 13:16:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
03/11/2002 12:40:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00718301
Message ID:
00718312
Vues:
33
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform