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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
NULL VALUES
 Login/Join
 
<sasmita>
posted
Hi,
How do i specify NULL values so that whenever there is a database column with NULL vales it gets reflected in the report ?

The following is a piece of the filter that i have put in Maintain langauage, but its not picking up NULL values from the database.

'AND TRIM(A.THRD_PRTY_I) IN (' | '''' || 'N' || '''' | ',' | '''' || NULL || '''' | ')'

Please help.
 
Report This Post
<toby mills>
posted
Hi Sasmita

Thankfully I don't have to mess with NULLs that much. I think you're close though.

Try getting away from putting 'NULL' in your IN list and use the keyword MISSING (no quotes as this is not a literal) instead. See if that works for you.

It would work on a straight equality test I think, but I'm not sure about whether or not NULLs are preserved from the TRIM function, and I can't say for sure that I've used it in an IN list. If the IN list doesn't work, you might be able to fall back to older syntax of using

WHERE THRD_PRTY_I EQ MISSING OR 'N'.

Good luck!

-Toby
 
Report This Post
Expert
posted Hide Post
I think the syntax would be

WHERE THRD_PRTY IS MISSING OR THRD_PRTY EQ 'N'
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
We had to convert all our MISSING checks for short path type joins in our DB2 environment to the form that Francis used or close using 'EQ' instead of 'IS'. We used to say

WHERE THRD_PRTY EQ 'N' OR MISSING

NOW due to the SQL generated for the DB2 giving an error (version 5.3.x) we changed it to

WHERE THRD_PRT EQ 'N' OR THRD_PRTY EQ MISSING

using your terms.
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
<toby mills>
posted
It is best to seperate your OR into two different conditions as you guys are doing.

I'm old school when the OR to seperate a list was the norm. Now though, I'd say that's a better syntax.

-Toby
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders