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 |
|
berengar
Starting Member
21 Posts |
Posted - 2006-06-28 : 09:07:50
|
| Why wont a simple case statement to replace NULL values like this :WHEN NULL THEN '' ELSE ct_dept END as 'Department',------------why is this not working and still returning the null values , insteadof blank spaces ? |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-06-28 : 09:09:20
|
| when nullis the equivalent of = nullwhich returns null which is interpreted as falseyou needcase when x is null thenelseend==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-06-28 : 09:10:39
|
| Can you post some sample data?Try alsoSelect ISNULL(column,'') from yourTableMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|