Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correlated Query help
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Correlated Query help
Miscellaneous
Thread ID:
00494635
Message ID:
00494635
Views:
54
Hi All,
This works in SQL Server, however VFP cannot handle the complexity. :( I'm not sure how to rewrite it.
SELECT S.Clm_Id, S.Svc_Dt ;
	FROM Mc_MdSvc S, Mc_MdClm C ;
	WHERE C.Adjt_Stat = "Z" ;
	AND C.Clm_Id = S.Clm_Id ;
	AND NOT EXISTS (SELECT * FROM Mc_PlnHs P ;
				WHERE P.Mem_Num = C.Mem_Num ;
				AND P.Active_Ind = .T. ;
				AND P.Pln_Id = C.Pln_Id ;
				AND P.Ins_Id_Num = C.Ins_Id_Num ;
				AND P.Eff_From <= S.Svc_Dt ;
				AND P.Eff_Thru >= S.Svc_Dt)
What it chokes on is the last 2 lines of the subquery. It only can handle equality. Any Ideas?
Bill Armbrecht
VFP MCP
Next
Reply
Map
View

Click here to load this message in the networking platform