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     [CLOSED] Empty value in WHERE caluse

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Empty value in WHERE caluse
 Login/Join
 
Gold member
posted
Hi,

I have a report which has a drill-down report. Some times we'll get an empty value in drill column. If we click on empty value for drill report, I'll add the
'TOTAL' 
in WHERE clause like below.
WHERE TOTAL <Column_Name> EQ ' ' 


Without 'TOTAL' in the WHERE clause, the report getting 0 records for empty value.

While using 'TOTAL', the report reading the entire base and then retrieves the Empty records correctly. So the report taking a long time to retrieve output for Empty value.

Is there any other way to pull empty records? or how to compare/filter empty value in WHERE clause?

I tried the MISSING=ON but it's not working in my report.

I'm using AP version 8105m.

Thanks.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 86 | Location: India | Registered: November 03, 2015Report This Post
Guru
posted Hide Post
WHERE COLUMN EQ MISSING


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Gold member
posted Hide Post
Hi Frans,

thanks for your reply. I already tried your code but it's not working as expected.


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 86 | Location: India | Registered: November 03, 2015Report This Post
Virtuoso
posted Hide Post
Maran

Your WHERE statement has a blank space between the tick marks. Try this

WHERE TOTAL Column_Name EQ ''


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
Chuck,

If I use TOTAL in WHERE, I'm getting the report correctly. But it takes long time to run. That is the issue.


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 86 | Location: India | Registered: November 03, 2015Report This Post
Virtuoso
posted Hide Post
Maran

How many records is it processing?


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
Chuck,
It's processing around 150K records. If we use TOTAL in WHERE clause, it processing entire base and then retrieves Empty value records. That's why it takes time.


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 86 | Location: India | Registered: November 03, 2015Report This Post
Virtuoso
posted Hide Post
Maybe this is one of those queries you either need run deferred or schedule on whatever basis is required.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Guru
posted Hide Post
First you need to know how the data is stored on the DB. Is it null, 0, '' or ' ' to avoud using TOTAL you can try to use DB_EXPR to use some native SQL to filter this data.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Gold member
posted Hide Post
quote:
Is it null, 0, '' or ' ' to avoud using TOTAL you can try to use DB_EXPR


Frans,

thanks for your reply. I'll check on DB_EXPR.


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 86 | Location: India | Registered: November 03, 2015Report 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     [CLOSED] Empty value in WHERE caluse

Copyright © 1996-2020 Information Builders