Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sum iif()
Message
From
06/11/2005 23:52:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Sum iif()
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows '95
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01065901
Message ID:
01065901
Views:
60
Dear Experts
SELECT AVLBOOK
SUM For Mode='B' BAGS To B
SUM For Mode='L' BAGS To L
I want to use above lines in SELECT statement
I wrote follwing lines but do not work please modify
SELECT *;
	FORM AVLBOOK;
	SUM(IIF(BAGS,Mode="B",1,0)AS B;
	SUM(IIF(BAGS,Mode="L",1,0)AS L;
	ORDER BY ACC_NO;
	GROUP BY ACC_NO;
	INTO CURSOR XYZ
Field Bags is numeric
Filed Mode is character

please help
Next
Reply
Map
View

Click here to load this message in the networking platform