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:
00794323
Vues:
14
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
>>  ...
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform