Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL to complex
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00339172
Message ID:
00339216
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform