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]Getting Null values from Left Outer Join

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]Getting Null values from Left Outer Join
 Login/Join
 
Member
posted
I am working with 2 tables that are related through a left outer join.
I am looking for the records in the first table where the join turned up a null value(the records did not exist in the second table).
I tried a where is missing, where EQ ‘’, and where EQ ’ ‘ in the second table and every time it came up with 0 records.
Does anyone know of another way to get records where the right table has no records?

e.g.
Original Table
ID C1 C2
1 record-1 data-1
2 record-2 data-2
3 record-3 data-3
4 record-4 data-4
5 record-5 data-5

Joined table
ID C1 C2 C3
1 Y record-A other-A
3 N record-C other-C
5 Y record-E other-E

JOIN LEFT_OUTER Original_Table.ID IN Original_Table TO UNIQUE Joined_Table.ID IN Joined_Table TAG J4 as J4 END

I want the report to produce all records in Original_Table that do not exist in Joined_Table.
(2,4)

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


WebFOCUS 8.1.05
Windows-iSeries DB2, All Outputs
HTML
 
Posts: 29 | Location: Cincinnati, OH | Registered: August 23, 2011Report This Post
Virtuoso
posted Hide Post
Prior to your JOIN, try:

SET ALL = ON


or

SET ALL = SQL


or, if you have a WHERE clause on the child instance

SET ALL = PASS


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
quote:
SET ALL = SQL



When did this come in ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
SET ALL = PASS
[/QUOTE]

That worked great I had a where clause to determine if it was blank to show it.
Thanks a bunch,
Todd


WebFOCUS 8.1.05
Windows-iSeries DB2, All Outputs
HTML
 
Posts: 29 | Location: Cincinnati, OH | Registered: August 23, 2011Report This Post
Master
posted Hide Post
quote:
Originally posted by Waz:
quote:
SET ALL = SQL



When did this come in ?


7.7.x Walter Blood did a demo of it in our WFUG last month.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Member
posted Hide Post
Todd can you please post some of your code on this that is working? I have added the SET ALL = PASS above my join and it is still not working?
 
Posts: 2 | Registered: May 03, 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     [Solved]Getting Null values from Left Outer Join

Copyright © 1996-2020 Information Builders