Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Empty value in WHERE caluse
Go
New
Search
Notify
Tools
Reply
  
[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: 85 | Location: India | Registered: November 03, 2015Reply With QuoteReport 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: 450 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport 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: 85 | Location: India | Registered: November 03, 2015Reply With QuoteReport 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: 2070 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport 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: 85 | Location: India | Registered: November 03, 2015Reply With QuoteReport 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: 2070 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport 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: 85 | Location: India | Registered: November 03, 2015Reply With QuoteReport 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: 2070 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport 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: 450 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport 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: 85 | Location: India | Registered: November 03, 2015Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Empty value in WHERE caluse

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.