Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting FROM/INTO same cursor
Message
 
 
To
05/08/2008 13:06:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01336417
Message ID:
01336620
Views:
11
>>For this select you don't need SELECT IN clause at all. Just add your WHERE condition to the Select statement.
>>
>I don't think so. I need all the records for any RMA which has a record of "Passed - waiting for source". Removing the IN clause would throw away those other records
>
>>>SELECT * FROM (lcReturn) ;
>>> WHERE rma_no IN (SELECT rma_no FROM (lcReturn);
>>>                   WHERE activity = "Passed - waiting for source" ;
>>>                    AND EMPTY(date_end)) ;
>>>  INTO CURSOR (lcReturn)
is the same as
SELECT * FROM (lcReturn) ;
 WHERE activity = "Passed - waiting for source" ;
                    AND EMPTY(date_end)) ;
  INTO CURSOR (lcReturn)
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform