Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query too complex
Message
 
 
To
19/02/2009 22:30:54
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Miscellaneous
Thread ID:
01383004
Message ID:
01383007
Views:
42
>Hi,
> Anyone have any idea why the following code would be throwing a "Too Complex" error.
>
>
>Delete From pattern ;
>Where pattern.patid In (Select CurRemove.patid From CurRemove) ;
>.and. xpat.patid Not In (Select CurExcept.patid From CurExcept)
>
Use DELETE FROM syntax instead, e.g.
delete Pattern from Pattern inner JOIN curRemove on Pattern.PaidID = curRemove.PatID LEFT JOIN curExcept on ;
Pattern.PatID = curExcept.PatID where curExcept.PatID IS NULL
I don't think you can use two sub-queries in DELETE syntax and also what is XPat in your query?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform