Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL to complex
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00339172
Message ID:
00339216
Views:
18
>Hello gang,
>I'm trying to create a view using a sub-select, whilst VFP allows me to create it in code from the command window, it throws the error "SQL to complex" if I try to modify it in the database designer, all I'm trying to do is select records from a lookup table that are not in another based on a common field, this is how I've tried to do it
>
>Select * ;
>from elemtype ;
>where elemtype.claim_elem_code not in ;
>(Select elem_code from elements where elements.clm_ref = ?thisform.clm_ref)
>
>the actual code works fine, is there an easier / better way to do this??

Stick with maintaining this SQL in a PRG file. The View Designer can not handle this. Or download Erik Moore's EVIEW tool.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform