Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL into one and 'A' before 0
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00794037
Message ID:
00794560
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform