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 |
|
reading2009
Starting Member
22 Posts |
Posted - 2011-09-30 : 12:02:35
|
| Hi I have 2 columns:col1 col21 null2 3null 5result should be:col312 35how can i achieve this? any help? |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-09-30 : 12:04:32
|
| [code]select coalesce(col1+ ' ','') + coalesce(col2,'') as col3 from table[/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
reading2009
Starting Member
22 Posts |
Posted - 2011-09-30 : 13:12:23
|
| Thank you. It worked. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-09-30 : 13:18:26
|
| welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|