Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicate Entries in 2 different tables
Message
 
 
À
10/04/2006 07:42:04
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01111888
Message ID:
01111898
Vues:
13
SELECT case_no from table_a ta 
  WHERE EXIST (select case_no from table_b tb  WHERE tb.case_no = ta.case_no) 
  into cursor dup_record
>
>I think I have read this before & I forget it completely...
>
>For instance, case_no in 2 tables may be duplicated, I want to find which number is duplicated, how can I do this in SQL command?
>
>I think it is something like this:
>
>[CODE]
>SELECT case_no from table_a IN EXIST (select case_no from table_b) into cursor dup_record
>[/CODE]
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform