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] Where Clause

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Where Clause
 Login/Join
 
Silver Member
posted
I have two files File A with 570 records and file B with morethan a 1000 records. In file B I have inactive records and I want to exclude them from the list. I did a left outer join from A to B and I have a where statement filtering the active records only in file B. My result is behaving like I did an inner join. Is there other way to make this work with out creating another hold file?
Here is my Code
JOIN
INNER C6AENB AND C6DCCD AND C6CVNB IN N06
TO UNIQUE SROCON AND SRDCCD
AND SRORD# IN WCSRLP00 AS J37
END
TABLE FILE N06
PRINT
'C6AENB'
'C6DCCD'
'C6CVNB'
'SRSRL#'
'SRLBNO'
WHERE WCSRLP00.WCSRLP00.SRATIV EQ 'A';
ON TABLE PCHOLD FORMAT HTML
END

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


WebFocus 762 AS400 / DB2
 
Posts: 34 | Location: Winnipeg, MB | Registered: January 23, 2008Report This Post
Expert
posted Hide Post
This type of JOIN is new to an old 5.3 coder like me.

Did you turn SQL traces on to see what is passed to SQL? You specify INNER but you're expecting a left outer join?


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
Silver Member
posted Hide Post
Hi Francis,
I'm sorry I paste the wrong code. Here is my code that i'm having problem.
JOIN
LEFT_OUTER C6AENB AND C6DCCD AND C6CVNB IN N06
TO UNIQUE SROCON AND SRDCCD
AND SRORD# IN WCSRLP00 AS J37
END
TABLE FILE N06
PRINT
'C6AENB'
'C6DCCD'
'C6CVNB'
'SRSRL#'
'SRLBNO'
WHERE WCSRLP00.WCSRLP00.SRATIV EQ 'A';
ON TABLE PCHOLD FORMAT HTML
END


WebFocus 762 AS400 / DB2
 
Posts: 34 | Location: Winnipeg, MB | Registered: January 23, 2008Report This Post
Expert
posted Hide Post
I might be crazy Noel, but it looks like you coded an inner join.

To do an outer, it should specify that in the join and there should be a SET ALL=ON prior.

Here is an interesting post on the status of joins in WebFOCUS that you might find useful.

https://forums.informationbuilders.com/eve/forums/a/tpc/...561030103#6561030103


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Guru
posted Hide Post
Noel,

I am confused. How can you have an outer join when you only select where a value on the second table has a value? Once you test the second table for a value, you get an inner join. Perhaps you can change your code to
'- WHERE WCSRLP00.WCSRLP00.SRATIV EQ 'A' OR
WCSRLP00.WCSRLP00.SRATIV IS MISSING;


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report 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] Where Clause

Copyright © 1996-2020 Information Builders