Focal Point
NULL Versus Blank

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9441090112

February 02, 2007, 02:49 PM
Chris Shaffer
NULL Versus Blank
If I've got a database record where the column 'type_cd' column is NULL, would that record be returned in a webfocus query where clause like:

WHERE TYPE_CD EQ ''

???

If not, how do you query on NULL column values?
February 02, 2007, 02:55 PM
Chris Shaffer
Nevermind. I figured it out. I have to use:

WHERE TYPE_CD EQ '%NULL%'
February 02, 2007, 07:08 PM
susannah
say Chris, tell us what kind of database you're reading, would you?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 03, 2007, 06:00 AM
OPALTOSH
use SET ALL=PASS
and then use a selection test that no other records will pass.
with ALL=PASS, null or missing values are considered to pass any selection tests.
February 03, 2007, 12:12 PM
susannah
adelaide,
i do believe all=pass is a bit different, for a JOIN where no screening condition is applied that would affect a field in the guest file, hence the pass; a different interpretation from suggesting that screening conditions of any kind would be obviated by it use.
-s.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 03, 2007, 11:57 PM
Piipster
Try:
WHERE TYPE_CD IS MISSING


ttfn, kp


Access to most releases from R52x, on multiple platforms.