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 |
|
arkiboys
Master Smack Fu Yak Hacker
1433 Posts |
Posted - 2007-05-31 : 11:47:12
|
| How is it possible to show null if the field is empty?i.e.select ID, namefrom table1it should show something like:1, 'jo'2, NULL3, NULL4, 'Jack'...Thanks |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-05-31 : 11:54:08
|
| [code]selectID,NULLIF(name, '') as Namefromtable1[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|
|