Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the ICASE function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01514002
Message ID:
01514005
Vues:
54
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform