Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
esthera
Master Smack Fu Yak Hacker
1410 Posts |
Posted - 2004-11-01 : 04:20:20
|
| I am runnign the follwing sqlselect * from users where and status1!=4Now I have 5 records wehre status1 is null and they are not being returned.Does anyone have any idea why not? |
|
|
sachinsamuel
Constraint Violating Yak Guru
383 Posts |
Posted - 2004-11-01 : 04:29:41
|
| HiPlease try the queries below.select * from users where and (status1!=4 or status1 is null)Orselect * from users where and isnull(status1,'')!=4 |
 |
|
|
surefooted
Posting Yak Master
188 Posts |
Posted - 2004-11-01 : 10:07:26
|
Or you can SET ANSI_NULLS OFF, depends on your other requirements.-JonShould still be a "Starting Member" . |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2004-11-01 : 11:15:01
|
maybe it was a typo on your part but you don't need ANDchangeselect * from users where and status1!=4toselect * from users where status1!=4Go with the flow & have fun! Else fight the flow |
 |
|
|
|
|
|