Solved

SQL code to create a custom field from SELECT

Posted on 2014-09-12
3
130 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

697 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