Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Name
======
KK
pp
yy
Null
Null

out put can given

Name
===
kk
pp
yy
Posted
Updated 19-Jan-15 20:27pm
v2

You can try this :

SQL
SELECT * FROM yourTableName WHERE YourColumnName IS NOT NULL


Good luck
 
Share this answer
 
You can try this way also
SELECT * FROM yourTableName WHERE ISNULL(YourColumnName,'')<>''
--here first check whether the column is null , if it is then replace the value by '' and then compare 


thanks
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900