Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL & COUNT() problem
Message
From
28/06/1997 16:42:32
 
 
To
28/06/1997 11:41:51
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00037774
Message ID:
00037990
Views:
38
> > 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
Previous
Reply
Map
View

Click here to load this message in the networking platform