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 |
|
interclubs
Yak Posting Veteran
63 Posts |
Posted - 2003-07-15 : 15:31:06
|
| I have a table that has a FirstName and a LastName field, I am trying to figure out some way to combine them in a select...so it would be something like this:(Select FirstName, LastName from User_Profile) as UserNameBut I would want it to combine the two, and add a space in between them. i.e. FirstName + ' ' + LastName as UserNameIs this possible? |
|
|
setbasedisthetruepath
Used SQL Salesman
992 Posts |
Posted - 2003-07-15 : 15:36:01
|
| Yep.select firstname+' '+lastname as username from user_profileJonathan{0} |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-07-15 : 15:37:45
|
| SELECT FirstName + ' ' + LastName AS UserNameFROM user_profileTara |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-07-15 : 15:38:46
|
| Damn, Jonathan beat me to it.Tara |
 |
|
|
setbasedisthetruepath
Used SQL Salesman
992 Posts |
Posted - 2003-07-15 : 15:43:10
|
My sub-1000 post count needs padding ...Jonathan{0} |
 |
|
|
|
|
|