Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT based on a matching record in another table
Message
From
12/07/2002 13:03:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/07/2002 12:58:13
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00678126
Message ID:
00678134
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>I'm stumped! I've been looking at this too long I think. I am trying to create a temporary cursor of only those records in table (a) that have a record in table (b) AND whose table (b) field fontreq value =.t.
> ...

I think that would be something like the following:
select * from TableA where MatchingField in;
  (select MatchingField from TableB where FontReq)
HTH, Hilmar.
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
Reply
Map
View

Click here to load this message in the networking platform