troubleshooting Question

Combining columns in MSSQL query

Avatar of TPBPIT
TPBPIT asked on
9 Comments1 Solution293 ViewsLast Modified:
I have several columns called for simplicity A, B, C, D and E that are all in the same table.  I need to join A, B, and C into one column called FullName and still have D and E in separate columns.  I can get A, B, and C into a new column with the following select statement: Select(LastName + ', ' + FirstName + ' ' + MiddleName) As FullName.  However, I can't figure out how to get D and E into the select statement to have them put in there own columns.  Any idea?

Also, the resulting dataset needs to be in ascending order by the newly created column FullName.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros