Solved

SQL code to create a custom field from SELECT

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now