Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL & COUNT() problem
Message
De
28/06/1997 16:42:32
 
 
À
28/06/1997 11:41:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00037774
Message ID:
00037990
Vues:
36
> > if the JOB numer does not change every time yo do the select you can > > calculate it once into a variable > > > >>> >> SELECT job, (sum(IIF(done='yes',1,0))/count(job))*100 AS progress in your SELECT you devide the number of DONE jobs by the number of Jobs (COUNT(jobs)) if this number doesn't change while the counter runs you can calculate it once before you start to give the percentage of "done" Arnon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform