Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select where not exists
Message
From
16/12/2004 16:19:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
16/12/2004 16:00:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00969838
Message ID:
00969843
Views:
9
>Hi
>
>I know I've seen this somewhere but cant seem to find it now I need it.
>
>How do I select records from table A that do not exist in table B?
>
>regards
>Geoff Scott

This is easily solved with a subquery.
select * from TableA where KeyField not in (select KeyField from TableB)
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform