Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicate Entries in 2 different tables
Message
 
 
To
10/04/2006 07:42:04
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01111888
Message ID:
01111898
Views:
14
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform