Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
JOINS
 Login/Join
 
Member
posted
I have almost no programming knowledge, so I'm a little (probably a lot) lost on the basics of joins. I have 7 tables which I joined at the beginning of my program.

The 1st table is joined to 3 tables (2 use the primary key, 1 does not). Then the other 3 tables are joined to each other by whatever field the have in common (sometimes primary key, sometimes not).

1. Should I be putting all of the joins at the beginning?

2. Some of the tables are joined by the primary key; some are not because they have a different field in common. Is that important?

3. Can I join A to B, A to C, A to D. Then join B to E, B to F, F to G?

3. This program works sometimes (very slow) & other times it just runs & runs until I kill it. I'm assuming that's due to the way I wrote it.

4. Where can I learn this stuff? I looked up all of the join documentation I could find, but it didn't really tell me if I could put them all at the beginning; if primary keys mattered; if I needed to do some kind of indexing; if I could join A to B, and then B to C, and then D to B, etc, etc, etc.

Thanks.
 
Posts: 4 | Registered: September 16, 2009Report This Post
Virtuoso
posted Hide Post
Corky
So many questions, and on such a complex issue. It is useful for us to know a lot more about your system, type of DB etc. Always helps.

But in general:
1. It is normal to create a JOIN structure at the beginning of the program. Only Tables with referenced fields in the report will be accessed. However, it is worth looking at a cluster join, which is an mfd, rather than issuing JOIN syntax everywhere.
2. This is down to your DBA. It is not the Primary Key that is important but indexing on the required fields that you are joining to. Without this performance can be wickedly slow.
3. When you join A to B, B becomes part of A, so a subsequent JOIN to B references file A, as B is now part of the structure A. Same applies to F.
4. See 2.
5. The documentation does assume a certain level of knowledge. Talk to your local IB rep to get some training. This can be hugely beneficial.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders