February 02, 2007, 02:49 PM
Chris ShafferNULL 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 ShafferNevermind. I figured it out. I have to use:
WHERE TYPE_CD EQ '%NULL%'
February 02, 2007, 07:08 PM
susannahsay Chris, tell us what kind of database you're reading, would you?
February 03, 2007, 06:00 AM
OPALTOSHuse 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
susannahadelaide,
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.
February 03, 2007, 11:57 PM
PiipsterTry:
WHERE TYPE_CD IS MISSING