View previous topic :: View next topic
|
Author |
Message |
checky76
New User
Joined: 13 Oct 2007 Posts: 10 Location: Vienna
|
|
|
|
hi,
i have a table with some columns defined with default null (column systemcode_1)
when i select column SYSTEMCODE_1 <> '91' and the columns is null no result will be displayed.
when i select AND SYSTEMCODE_1 <> '91' or is null then result is ok.
is this normal in db2 ?
regards
christian |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
What do you call as "result is ok"? |
|
Back to top |
|
|
checky76
New User
Joined: 13 Oct 2007 Posts: 10 Location: Vienna
|
|
|
|
then i get the row i expect.
i mean that when i sql >< '81' null values must be included ?
regards
Christian |
|
Back to top |
|
|
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
|
|
Code: |
SYSTEMCODE_1 is distinct from '91' |
|
|
Back to top |
|
|
checky76
New User
Joined: 13 Oct 2007 Posts: 10 Location: Vienna
|
|
|
|
thanks for the info.
regards
christian |
|
Back to top |
|
|
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
|
|
google a bit about "DB2 is distinct from"
This should give you some links where it is all explained. |
|
Back to top |
|
|
|