Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL into one and 'A' before 0
Message
 
 
To
29/05/2003 13:49:58
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00794037
Message ID:
00794083
Views:
18
Correct,
I just want a SQL one liner - something like :::
  Select contact, eligarea, groupnum, groupname, ;
   WHERE NOT DELETED() ORDER BY IIF(LEFT(contact,1) = "A", "1", "2"), contact INTO FILE c:\temp\vsamnew.txt Type SDF
>I think he means he doesn't want the field cord included in the output file. He could just COPY TO FILE FIELDS EXCEPT cord.
>
>>Sorry, but I don't understand what you mean.
>>
>>>I like it - but we need one step further so that the output to text does not reflect cord!
>>>
>>>>You can simplify it a little bit.
>>>>SELECT ...,
>>>>  IIF(LEFT(contact,1) >= "A", "1", "2") AS cord ;
>>>>  ORDER BY cord, contact
>>>>  ...
>>>>
Edgar L. Bolton, B.S. B.B.A.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform