Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the ICASE function
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01514002
Message ID:
01514005
Views:
53
the extra parenthesis is:
SUM((d.Bill_prem)


why not have the sum outside the icase?
sum(ICASE(d.Bill_Mode="M", d.Bill_prem * 12, ;
				d.Bill_Mode="Q", d.Bill_Prem * 4, ;
				d.Bill_Mode="S", d.Bill_Prem * 2, ;
				d.Bill_Mode="A", d.Bill_Prem, ;
			        d.Bill_Prem * 12)) AS Annual_Prem, ;
>
Brandon Harker
Sebae Data Solutions
Previous
Reply
Map
View

Click here to load this message in the networking platform