Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL into one and 'A' before 0
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00794037
Message ID:
00794560
Views:
19
Very nice

>Edgar,
>
>You can simplify it further and speed it up by using:
>
>
select ... isdigit( contact ) as lorder
>
>In VFP the ORDER BY requires a column from the result, in SQLServer it doesn't need to be.
>
>>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
Reply
Map
View

Click here to load this message in the networking platform