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

Facebook Twitter LinkedIn YouTube
Go
New
Search
Notify
Tools
Reply
  
Null values
 Login/Join
 
<Lee Roper>
posted
I have a data file that has null values in a primary field. I do not want to set any records with a null value in this field. I tried the following: WHERE ( DEP_CDE NE ''' ' ) but it still pulls the records with the empty values. How do I eliminate nulls from my data set?

Thanks, Lee
 
Reply With QuoteReport This Post
Gold member
posted Hide Post
Have you tried
WHERE DEP_CDE IS-NOT MISSING

This should take care of null values for you.

Stan
 
Posts: 90 | Registered: April 15, 2004Reply With QuoteReport This Post
<Lee Roper>
posted
It looks like my problem is going to be more complex than that. There must be a space of some sort in this field (the data file was imported from a text file) WebFocus is not reading it as a null, because the records still pull in when using DEP_CDE IS NOT MISSING. To verify this, I reversed the selection and tried to select only records where DEP_CDE IS MISSING, and WebFocus did not find any records. So what can I do to account for this space in the field?
 
Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Try something like where DEP_CDE GE 0 (or '0' if it's a text field). If the blank values contain a space I believe if I remember correctly a 'space' is not GT '0'. Another option is if DEP_CDE always contains at least one number for example you could use WHERE DEP_CDE CONTAINS(0 OR 1 OR 2 OR 3 etc);

Tewy
 
Posts: 123 | Location: UK | Registered: October 09, 2003Reply With QuoteReport This Post
Master
posted Hide Post
IF you try getting records that are '' and you get only those records and you have also tryed where is not missing. Then you might try using where xxx is not missing and xxx NE ''. Give that a try. The only other thing would be to use a hex editor and see what the hex value of the field is.
 
Posts: 862 | Registered: May 24, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 


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