Combine Date Field to other fields [message #465056] |
Mon, 12 July 2010 07:12 |
rki1966
Messages: 8 Registered: July 2010 Location: Dallas, TX
|
Junior Member |
|
|
I am new to the board. I am not a programmer but do know how to write some sql.
I have sql code that combines several fields but I am having problem when I combine a date field to another field.
(a.FirstSector + '-' + a.PosType+ '-' + DATEPART("mm",a.HistDate)) as 'Type'
When I run the query I get the following error:
Conversion failed when converting the varchar value 'CO-L-' to data type int.
|
|
|
|
|