?
Solved

SQL code to create a custom field from SELECT

Posted on 2014-09-12
3
Medium Priority
?
138 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 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