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.
| Author |
Topic |
|
SQLFOX
Starting Member
45 Posts |
Posted - 2011-01-12 : 10:41:18
|
| Is there a way that I can return all columns in the 'Employees' table and contatenate the Firstname and Lastname columns without having to list all individual columns? Is the query below the only way to do it? Select Firstname +' '+ Lastname, Department, Salary, StartDate From Employees |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-01-12 : 10:44:14
|
its the only way. else you can use thisSelect Firstname +' '+ Lastname, * From Employees but this will still include Firstname , Lastname columns also after concatenated result------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
SQLFOX
Starting Member
45 Posts |
Posted - 2011-01-12 : 10:56:20
|
| Thanks for your help :-) |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-01-12 : 11:04:18
|
| welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|