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.
The Left join using where conditions behaves as a inner join.It filters out the rows at he end instead of keeping the source row ans adding null columns for non matching condition.
WF8105M windows 10This message has been edited. Last edited by: FP Mod Chuck,
SET HOLDLIST = PRINTONLY
SET ASNAMES = SUBST
SET PAGE-NUM = OFF
TABLE FILE car
SUM SALES AS 'SALES1'
BY CAR
WHERE CAR NE 'ALFA ROMEO'
ON TABLE HOLD AS HOLD1
END
-RUN
TABLE FILE car
SUM SALES AS 'SALES2'
BY CAR
WHERE CAR NE 'BMW'
ON TABLE HOLD AS HOLD2
END
-RUN
JOIN LEFT_OUTER FILE HOLD1 AT HOLD1.HOLD1.CAR
TO UNIQUE FILE HOLD2 AT HOLD2.HOLD2.CAR TAG J001 AS J001
WHERE HOLD1.HOLD1.CAR EQ J001.HOLD2.CAR;
WHERE J001.HOLD2.CAR NE 'AUDI';
END
TABLE FILE HOLD1
SUM
HOLD1.HOLD1.SALES1
J001.HOLD2.SALES2
BY HOLD1.HOLD1.CAR
END
Finaloutput:
CAR SALES SALES2
AUDI 7800 0
BMW 80390 0
DATSUN 43000 43000
JAGUAR 12000 12000
JENSEN 0 0
MASERATI 0 0
PEUGEOT 0 0
TOYOTA 35030 35030
TRIUMPH 0 0
HOLD1 is the main table and has ALFA ROMEO filtered out and it doesn't appear anywhere in the final output
HOLD2 is the joined table and has BMW filtered out and the SALES2 field in the final report is 0 in the final output
In the join, HOLD2 has AUDI filtered out in the WHERE clause of the join and SALES2 for AUDI is 0 in the final output
This message has been edited. Last edited by: Hallway,
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015
Hi Siva, Yep, you are not the only having similar results using LEFT OUTER join. You need to have following line at top of your FEX code for LEFT to work: SET ALL = PASS
WebFOCUS 8.201
Posts: 23 | Location: MI | Registered: October 06, 2016
It filters out the rows at the end instead of keeping the source row and adding null columns for non matching condition.
Sounds like you are using one of the relational engines?
If that is the case, if you want WebFOCUS to assign null values to the fields in a missing segment instance when a left outer join is in effect, you can issue the command SET SHORTPATH=SQL.