Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the percentage
Message
De
05/10/2007 13:24:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
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 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01259001
Message ID:
01259008
Vues:
16
>how to obtained the percentage.in this sql how to obtained %tage.
>
>SELECT subcode,scode,lcode,sec,fail,total, total/fail%100 as per ;
> FROM Stafft;
>group BY scode,lcode,sec;
>order BY lcode;
>into CURSOR olevelt

If you want to compare total against fail, and express that as percentage:

total/fail * 100

or probably you need it the other way around:

fail/total * 100
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform