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 |
jimmy2090
Starting Member
26 Posts |
Posted - 2014-06-19 : 02:12:20
|
Hi all,i has 2 column integer and i would like to combine it to 1 column.ColumnA ColumnB11 2240 45i want the output as below:11HD2240HD45i want to add the 'HD' between 2 integer.select ( HEAD_COUNT + 'HD' + CAPACITY) as HD_Capacity from pccommitfiledetail please help. thank you |
|
Indsqlbeginner
Starting Member
21 Posts |
Posted - 2014-06-19 : 02:54:09
|
try thisSelect (CONVERT(varchar(20), ColumnA) + 'HD' + CONVERT(varchar(20), ColumnB)) HD_Capacity as from pccommitfiledetail |
|
|
jimmy2090
Starting Member
26 Posts |
Posted - 2014-06-19 : 02:58:08
|
thanks, it solved. |
|
|
|
|
|