Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT ...WHERE cCode IN (SELECT cCode FROM LocalTable)
Message
From
10/05/1999 21:01:07
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SPT ...WHERE cCode IN (SELECT cCode FROM LocalTable)
Miscellaneous
Thread ID:
00217009
Message ID:
00217009
Views:
42
(VFP6) I want to do an SPT query like

SELECT LotsOfData FROM GiantServerDatabase ;
WHERE GiantServerTable.Code ;
IN (SELECT cCode FROM LocalTable)

to avoid pulling back so many records and then throwing out the ones I don't want. The LocalTable has 57 codes, and at 20+ minutes per query, I don't want to loop through my 57 codes and do 57 parameterized queries.

This is data for a report which will be run monthly.

Any advice? Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform