Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert into sql
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01473321
Message ID:
01473337
Vues:
34
>>Try UPDATE-SQL command
>>
>>
>>update Res SET Grade = ICASE(BETWEEN(Perc, 80,100), 'A+', Perc >= 70, 'A',...)
>>
>>What do you want for the case when Perc > 100 ?
>
i want use only PERC<=100
I would account for this case (even if it never happens) and start from it, e.g.
ICASE(Perc > 100, 'O', Perc >=80,'A+', Perc >= 70, 'A', Perc >='65', 'B+', Perc >=60, 'B', etc.)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform