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
Conditional JOIN
 Login/Join
 
Member
posted
In Mainframe FOCUS. Trying to do a conditional JOIN. It seems to me that the purpose of using WHERE statements with the JOIN is to do more filtering right up front at JOIN time, even before the other WHERE statements in the query are tested.

We are accessing DB2 tables. When I look at the SQL generated by the conditional JOIN, the first thing I see is a cartesian product. SELECT ... FROM A, B. Even if this is filtered later, it CAN'T be FAST!! Am I doing something wrong or misunderstanding something?

Thanks,
Phyllis
 
Posts: 15 | Registered: May 17, 2004Report This Post
Virtuoso
posted Hide Post
Perhaps WF cannot pass the WHERE condition in the join through to DB2.

What SQL is generated when you move the Where from the JOIN into the Table request?
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
When the WHERE statements all are in the TABLE request, the SQL picks up the JOIN as expected: SELECT ... from A, B, WHERE A.x = B.x AND ... But that isn't a "conditional JOIN". The conditional JOIN puts something other than equality right into the JOIN statement. When I do that, not only are the other WHERE filters ignored in the SQL, but so is the equality.

Thanks for considering this. I just wonder why conditional JOIN's don't seem to work at all.

Phyllis
 
Posts: 15 | Registered: May 17, 2004Report This Post
Virtuoso
posted Hide Post
I wasn't suggesting that -- just wanted to rule out the possibility that WF has some reason for not passing your condition in SQL. Since you've ruled that out, sounds like a bug.

Open a case.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders