|
Hi Phil, The problem is that there are a total of 974 fields after all that joining. After some testing, it appears that if I do it like this: SELECT a.PERSON1 as "a.PERSON1", a.PERSON2 as "a.PERSON2", b.PERSON as "b.PERSON", c.PERSON as "c.PERSON" FROM GROUP as A JOIN PEOPLE as b ON a.PERSON1 = b.PERSON JOIN PEOPLE as c ON a.PERSON2 = c.PERSON then I can refer to the fields as $(V_b.PERSON) instead of $(V3), which is the way *I* think I should be able to refer to it in the first place. I used a Net.Data macro to generate the field names, then copied & pasted the results back into the macro so I didn't have to key them all. Once I've finished the design and know which fields I'll be using, I can eliminate the unused fields. Thanks for the reply. Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax ----- Original Message ----- From: "Phil Groschwitz" <phil@groschwitz.com> To: <web400@midrange.com> Sent: Saturday, March 23, 2002 6:01 PM Subject: RE: [WEB400] Net.Data Variable names for join > Peter, > > Maybe you have to refer to it by position. If b.person is the ninth column > in the table created by the join, then V_9. Sounds familiar but not > positive. > > A way around this is to select only the fields you need - not all of them. > That should avoid the ambiguity. > > A great resource for net.data questions is IBM's net.data forum at > http://netdata.boulder.ibm.com/cgi-bin/db2www/forum.d2w/main and > ignite400.org. > > Phil > > _______________________________________________ > This is the Web Enabling the AS400 / iSeries (WEB400) mailing list > To post a message email: WEB400@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/web400 > or email: WEB400-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/web400. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.