Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help with Select SQL
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096128
Message ID:
00096132
Views:
20
Michelle,

Try this:

SELECT DISTINCT a.id FROM a ;
WHERE a.id IN (SELECT b.id FROM b) OR a.id IN (SELECT c.id FROM c)


>I'm just learning the wonders of the select command, so I apologize if this question is trivial.
>
>I have tables A, B, and C. I want to make a cursor of all the ID numbers in A that also appear in _either_ B or C. I think this can be done with select, but I'm not sure how.
>
>Thanks,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform