Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do this?
Message
De
03/01/2000 09:59:41
 
 
À
02/01/2000 18:31:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00311422
Message ID:
00311660
Vues:
13
>I have grid PAYROLL which represent the daily wages of each worker.
>In the grid is a column WAGES.
>Say, how can I get the sum of Peter's wages which is the sum of the column WAGES.
>I have tried SUM... as advised but it just sum up the all wages of everyone :(
>
>Could anybody help? I would like to avoid using SQL.
how about:
select sum(wages) from payroll where worker='peter' into array la1
if _tally>0
totalwage=la1[1]
else
totalwage=0
endif
Peter Cortiel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform