Click here to Skip to main content
16,020,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
NAME
1.SIVA
2.RAMA
3.
4.NULL


I WANT OUTPUT AS

NAME
1.SIVA
2.RAMA

What I have tried:

SELECT NAME FROM EMP WHERE NAME IS NOT NULL
Posted
Updated 5-Oct-17 22:18pm

1 solution

Try
SELECT Name FROM Emp WHERE Name IS NOT NULL AND Name != ''
 
Share this answer
 
Comments
Member 12863357 6-Oct-17 4:34am    
WORKING THANK YOU
OriginalGriff 6-Oct-17 4:38am    
You're welcome!

But do yourself a favour: DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalization if you want to be taken seriously.

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