Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using immediate IIIF in SQL statements
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Using immediate IIIF in SQL statements
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01513517
Message ID:
01513517
Vues:
114
I ran the following code, which was working until I added an IIF statement in the select clause is giving me problems in compiling; it says Error in line 193: Command contains unrecognized phrase/keyword.
	SELECT ;
			ct.Name, cv.GrpID, cv.GrpNum, cv.Date, ;
			cv.Seq, aa.EMP_ID, cv.CovCd AS PlanKey, ;
			SPACE(8) AS BnftName, cv.PREM, cv.Bill_Date, ;
			IIF (NOT EMPTY(aa.Depos_Date), cv.Prem, 0000000.00))  AS Collected ;
	FROM BLCEXTAA aa ;
	JOIN BLCEXTCV cv ;
		ON aa.GrpID+aa.GrpNum+aa.Date+aa.Seq=cv.GrpID+cv.GrpNum+cv.Date+cv.Seq ;
	JOIN GRPEXTCT ct ;
		ON cv.GrpID=ct.GrpID ;
	WHERE ;
		aa.Stat_Code="P" AND ;
		cv.GrpID=lcGrpID AND ;
		cv.CovCd=lcPlanKey AND ;
		YEAR(cv.bill_date)=2010 ;
	ORDER BY cv.GrpID, cv.GrpNum, cv.CovCd ;
	INTO TABLE tmpData
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform