Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Get full name of a person

By ncv,

Person name may have these combination in database
1. firstname only
2. middlename only
3. lastname only
4. firstname + middlename
5. firstname + lastname
6. middlename + lastname
And firstname, middlename, lastname may contain null or empty string in data. but usee want to display Fullname without spaces then how will combine all.

Total article views: 157 | Views in the last 30 days: 3
Related Articles

how to devied fullname into firstname and lastname

how to devied fullname into firstname and lastname


Split out FirstName, LastName, MiddleName

One column name as [MemberName] in which stored data like LastName, FirstName M (with initial mi...


Swap firstname to lastname

I have column called fullname which has firstname lstname example John Smith How can I get it to L...


Lastname, Firstname switch

I dont know if this is any help but this is the code I started with: SELECT HOST9006.DESCRIPTION,...


Create FirstName and LastName to Replace Existing FirstName and LastName

Hello Everyone I hope that you all are having a very nice day. I am wanting to change all the Fi...


Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones