Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized view and multiple tables Prob.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00460933
Message ID:
00461347
Vues:
13
>hi Garrett,
>
>You used these code
>
>FROM mhngroup!groupname ;
>LEFT OUTER JOIN mhngroup!group ON Groupname.namekey = Group.namekey ;
>LEFT OUTER JOIN mhngroup!groupnum ON Groupnum.numkey = Group.numkey ;
>LEFT OUTER JOIN mhngroup!notedata ON Notedata.groupkeyid = Group.groupkey
>
>istead of these code
>
>FROM mhngroup!groupname LEFT OUTER JOIN mhngroup!group;
>LEFT OUTER JOIN mhngroup!groupnum;
>LEFT OUTER JOIN mhngroup!notedata ;
>ON Notedata.groupkeyid = Group.groupkey ;
>ON Groupnum.numkey = Group.numkey ;
>ON Groupname.namekey = Group.namekey;
>
>Why do you want t change this?

Because it's parsed from the inside out. The beginning of the parsing reads like
groupnum JOIN noteData ON notedata.groupKeyId = group.groupKey, which is why the error gets thrown. Writing it "sequentially" instead of "nested" eliminates this problem, and makes it a bit easily to follow, IMO.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform