Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combining two cursors
Message
 
To
07/02/1997 09:17:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00019482
Message ID:
00019584
Views:
49
>
>SELECT * ;
>    FROM cursorA ;
>    INTO CURSOR cursorC ;
>    ORDER BY orderField
>UNION ;
>SELECT * ;
>    FROM cursorB
>
>>
>> Hmmm...this looks good, but when I tried it I only got records from
>> cursorA. Is there something missing?
>>
>the ORDER BY should be in the last SELECT
>also it should be on a field number
>
>btw, another way to do this is with a full outer join on the key field
>

Yes, thanks, that did it:
SELECT * ;
    FROM cursorA ;
    INTO CURSOR cursorC ;
UNION ;
SELECT * ;
    FROM cursorB;
    ORDER BY 1 && for example
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform