Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using records form table to filter another
Message
 
 
To
04/11/1999 13:38:42
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00287004
Message ID:
00287009
Views:
21
>I tried this yesterday but I wasn't getting my question across clearly.
>
>The application issues the following:
>SELECT 1,2,3 FROM MyTable WHERE 1 = "Blue" INTO CURSOR MyCursor
>The contents of MyCursor can be practicaly anything, but field1 is a primary field.
>
>
>Now I want to do (at design time):
>SELECT 4,5,6 FROM MyTable WHERE 1 = only those records whose field1's match those in MyCursor.
>
>Can this be done?

select 4,5,6 from Mytable2 where MyTable2.IDField in (select field1 from Mytable1) ...
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform