TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Get Data from SQL Server without Null Values
Gaurav Kumar
Nov 11, 2014
4
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
This blog describe how to Get Data from SQL Server without Null Values.
I have a table like below structure:
FName MName LName
Gaurav NULL Kumar
Piyush Sharma NULL
How can I write a query so that I can get an output without null values. I dont want them in my result.
Gaurav Kumar
Piyush Sharma
Here is the solution;
select
IsNull
(FName,
''
) +
' '
+
IsNull
(MName,
''
) +
' '
+
IsNull
(LName,
''
)
from
tableName
IsNull function checks first paramter…. if it is null then second parameter is returned else first parameter is returned as it is.
Get Data from SQL Server without Null Values
Next Recommended Reading
Handling Null Values in DataTable's in DateTime Column Using SQL DateTime DataType