Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with memo fields
Message
From
06/04/2015 14:35:14
 
 
To
02/04/2015 08:05:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01617666
Message ID:
01617825
Views:
42
>The following code does not work.
>
>
>SELECT 'A', * FROM \pro50\apdata\apvend18 vv ;
>WHERE vendno = '000463' ;
>INTO CURSOR curAdds
>
>SELECT 'D', * FROM \pro50\apdata\apvend18 vv ;
>WHERE vendno = '000687' ;
>INTO CURSOR curDeletes
>
>SELECT * ;
>FROM curAdds;
>UNION ;
>sele * ;
>FROM curDeletes;
>INTO CURSOR zzzz
>

>
>I may be mistaken here, but, off the top of my head, wouldn't this query do the job?
>
>
>SELECT ICASE(vendno = '000463', 'A', vendno = '000687', 'D', ' ') AS MyField, vv.* ;
>FROM \pro50\apdata\apvend18 vv ;
>WHERE INLIST(vv.vendno,  '000463',  '000687')
>INTO CURSOR zzzz
>
Yes it would, but I was just trying to illustrate a larger problem I had where I was forced to use UNIONs
Previous
Reply
Map
View

Click here to load this message in the networking platform