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     Build report with LEFT OUTER JOIN

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Build report with LEFT OUTER JOIN
 Login/Join
 
Member
posted
Hi All, I am struggling with using JOIN function in WebFocus report to get result as left outer join. No matter what I do, I always get result as inner join. Is there a syntax format to be used?
My code is as such:

JOIN
REGION_ID IN USER_DATA TO UNIQUE
REGION_ID IN DIM_REGIONS TAG J1 AS J1
END

TABLE FILE USER_DATA
BY USER_DATA.REGION_ID
BY J1.REGION
SUM UNITS\I8C

I would like this report to show all Regions in User Data that are both, matched and not matched to DIm_Regions.

Any suggestions?


WebFOCUS 7.7, iWay Data Migrator, Windows
Excel, PDF, HTML, XML
 
Posts: 19 | Registered: March 19, 2012Report This Post
Platinum Member
posted Hide Post
Put this line on top of the JOIN section
SET ALL =ON
or
SET ALL =PASS to include the parent records irrespective of the filter conditions..


thanks
Sashanka


WF 7.7.03/Windows/HTML,PDF,EXL
POC/local Dev Studio 7.7.03 & 7.6.11
 
Posts: 103 | Registered: June 12, 2009Report This Post
Expert
posted Hide Post
You may have to turn LEFT OUTER JOIN capability on, depending on the DBMS:

SQL SQLORA SET SQLJOIN OUTER ON
END

...

SQL DB2 SET SQLJOIN OUTER ON
END


I've also used
SET SHORTPATH = SQL


Change the JOIN syntax:
JOIN LEFT_OUTER CONTRACT_ID IN TEST_CONTRACT TO MULTIPLE CONTRACT_ID IN XJM AS J1


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Anna,
What type are your files USER_DATA and DIM_REGIONS? SQL? FOCUS? Sequential?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Member
posted Hide Post
Thank you all for comments and tips.

Daniel, the files are a mix; there could be a left join from csv (raw) data to a DB2 table or form db2 table to another db2 table.


WebFOCUS 7.7, iWay Data Migrator, Windows
Excel, PDF, HTML, XML
 
Posts: 19 | Registered: March 19, 2012Report 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     Build report with LEFT OUTER JOIN

Copyright © 1996-2020 Information Builders