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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] MS SQL JOIN to WF: join field question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] MS SQL JOIN to WF: join field question
 Login/Join
 
Guru
posted
I have a MS SQL statement to translate to WF code where I don't know the join field.
Or is this just a different way to describe a WHERE clause?

INNER JOIN dbo.ReportFilterType AS RFTP ON RFTP.FilterTypeId = @FilterType

Thanks.

This message has been edited. Last edited by: Kerry,



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
 
Posts: 274 | Location: Boston/New England | Registered: February 12, 2006Report This Post
Virtuoso
posted Hide Post
You could write that condition as a WHERE statement, as long as that INNER JOIN isn't part of a result-set that's brought in using an OUTER JOIN further up in the query.

If it is part of an OUTER JOIN, then putting that condition as a WHERE clause would imply that the OUTER JOIN can't return NULL values and you would effectively turn it into an INNER JOIN by doing so.
In that case you will probably have to write the results of the OUTER JOIN to a separate focus file first and then join that to the rest of the data-set later.

If there's a better way to do that, I'm all ears.
I've seen some reference to "conditional JOINs" too, maybe they would be useful here - the documentation is quite unclear about how to write one of them things. I recall I couldn't get them to work when I tried a while ago.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Guru
posted Hide Post
Thanks, Wep5622.

There is no Outer Join above this inner join but there are several lower in the query.
I suspect an Outer Join lower in the query would be impacted by this WHERE clause the same as one higher in the query. True?

Thanks.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
 
Posts: 274 | Location: Boston/New England | Registered: February 12, 2006Report This Post
Virtuoso
posted Hide Post
No, because in that case the rows where that condition holds true are part of the left-hand side of the join, while the NULL rows from the LEFT OUTER JOIN are at the right-hand side.

You probably don't have any RIGHT OUTER JOINs, those would be impacted if at the right-hand side of this join.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Guru
posted Hide Post
Great. Thanks Wep5622.
No there are no Right Outer Joins.
Thanks for your help.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
 
Posts: 274 | Location: Boston/New England | Registered: February 12, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] MS SQL JOIN to WF: join field question

Copyright © 1996-2020 Information Builders