UserId
|
Name
|
City
|
Education
|
1
|
Suresh
|
Guntur
|
B.Tech
|
2
|
Nagaraju
|
NULL
|
MCA
|
3
|
Sai
|
MBA
|
|
4
|
Madhav
|
NULL
|
MBBS
|
SELECT UserId,Name,City,Education FROM UserInfo WHERE
City IS NOT NULL AND City <>''
|
UserId
|
Name
|
City
|
Education
|
1
|
Suresh
|
Guntur
|
B.Tech
|
SELECT UserId,Name,City,Education FROM UserInfo WHERE
City IS NULL OR City =''
|
UserId
|
Name
|
City
|
Education
|
2
|
Nagaraju
|
NULL
|
MCA
|
3
|
Sai
|
MBA
|
|
4
|
Madhav
|
NULL
|
MBBS
|
DELETE FROM UserInfo where
City IS NULL OR City =''
|
UserId
|
Name
|
City
|
Education
|
1
|
Suresh
|
Guntur
|
B.Tech
|
|
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
2 comments :
You have written query for delete as "DELECTE FROM UserInfo where City IS NULL OR City =''"
But that should be like "DELETE FROM UserInfo where City IS NULL OR City =''"
I think this is spelling mistake.
@Kedar...
Thanks for notify my spelling mistake.