Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized view and multiple tables Prob.
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00460933
Message ID:
00461347
Views:
14
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform