SQL Clone
SQLServerCentral is supported by Redgate
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: 161 | Views in the last 30 days: 2
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...