Solved

SQL code to create a custom field from SELECT

Posted on 2014-09-12
3
135 Views
Last Modified: 2014-09-12
I have a query that begins with

select table.first_name,
select table.last_name,
...

I want to create a new a field called "Full Name" which will concatentate the first_name and last_name fields.  Can this be done using SQL
0
Comment
Question by:szadroga
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Expert Comment

by:Sheils
ID: 40320147
Select table.first_name & " " & table.last_name From table
0
 
LVL 16

Accepted Solution

by:
Sheils earned 500 total points
ID: 40320149
Sorry missed the field name:

Select table.first_name & " " & table.last_name As Fullname From table
0
 

Author Comment

by:szadroga
ID: 40320157
perfect thx
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question