Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Combine two columns with space in ALIAS

Author  Topic 

1sqlover
Yak Posting Veteran

56 Posts

Posted - 2007-02-02 : 17:21:42
How can I combine the data from two columns with a space in the middle as an ALIAS?

For example:

FirstName,LastName
John,Doe AS John Doe
Jane,Doe AS Jane Doe

Is this possible?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-02-02 : 17:34:28
SELECT FirstName + ' ' + LastName AS FullName
FROM YourTable

Is that what you mean?

Tara Kizer
Go to Top of Page

1sqlover
Yak Posting Veteran

56 Posts

Posted - 2007-02-02 : 17:56:18
Cool, thanks.
Go to Top of Page
   

- Advertisement -