UserId
|
Name
|
City
|
Education
|
1
|
Suresh
|
Guntur
|
B.Tech
|
2
|
Nagaraju
|
NULL
|
MCA
|
3
|
Sai
|
NULL
|
MBA
|
4
|
Madhav
|
NULL
|
MBBS
|
SELECT UserId,Name,ISNULL(City,'Tenali'),Education FROM UserInfo
|
UserId
|
Name
|
City
|
Education
|
1
|
Suresh
|
Guntur
|
B.Tech
|
2
|
Nagaraju
|
Tenali
|
MCA
|
3
|
Sai
|
Tenali
|
MBA
|
4
|
Madhav
|
Tenali
|
MBBS
|
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|
Subscribe by RSS
Subscribe by Email
3 comments :
Really thanks for all ur posts
thanks alot
we can use COALESCE to replace null value.