Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCAN and query result
Message
 
 
To
31/07/2001 13:16:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00537855
Message ID:
00537885
Views:
26
SELECT KeyField from AnotherTable Into Cursor KeyCursor
SET RELATION TO KeyField INTO Mytable
SCAN 
   ...
ENDSCAN
>I want to process, in a SCAN loop, all records that satisfy a given condition. The condition is most easily expressed as a SELECT - SQL - but what is the best way to combine the two?
>
>
>Pseudocode:
>
>SCAN where KeyField in (SELECT KeyField from AnotherTable)
>   ...
>ENDSCAN
>
>
>The processing itself is too complicated to place into a single INSERT - SQL command.
>
>Basic criteria: 1) code should not be too messy, 2) it should be reasonably fast.
>
>TIA, Hilmar.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform