Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count
Message
 
 
À
12/11/2009 06:20:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Re: Count
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01434354
Message ID:
01434374
Vues:
58
This message has been marked as a message which has helped to the initial question of the thread.
>hi all,
>
>i need help to count again the same field as below
>
>
>SELECT office , department,count(office) as total_cfil && and  count(office) as sub-total where flg="1" and newfield have( total_cfil -sub-total) ;
>from new1 ;
>group by department,office INTO table mucurt
>
>
>thanks

Mohammed,

You may try (VFP9 only - uses derived table)
select *, total_cfil -SubTotal as NewField from (select Office, Department, ;
Count(Office) as Total_cFil, sum(iif(Flg=1, 1,0)) as SubTotal from New1 ;
group by department,office) X into table MuCurt
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