Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count??
Message
De
10/08/2009 01:04:24
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
07/08/2009 14:37:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01416689
Message ID:
01417055
Vues:
119
>>You are addicted. (^.^)
>>
>>Basically I agree with you. But the originator of this thread mixed up records with cursors so I tried to keep it simple.
>>
>>there are numerous ways like
>>
>>	create cursor Rakija;
>>	(	a	c(1), ;
>>		b	c(1),; 
>>		c	c(1) ;
>>	)
>>	insert into Rakija values ('', 'x', 'y')
>>	insert into Rakija values ('', 'x', 'y')
>>	insert into Rakija values ('a', 'x', 'y')
>>	insert into Rakija values ('b', 'x', 'y')
>>	insert into Rakija values ('c', 'x', 'y')
>
>But we may have a request to count each field separately, for which you'd then have to run one select per. Can be done in a single select
>
>
	select sum(iif(empty(a), 1, 0))  as CntA;
>		, sum(iif(empty(b), 1, 0))  as CntB;
>		, sum(iif(empty(c), 1, 0))  as CntC;
>		from Rakija ;
>		into cursor RakijaTmp
>
>               select Rakija
>	
>	&& report cursor = Rakija, use RakijaTmp.CntA, .cntB etc as field in summary
>>
No objection.


More Beer
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform