I am very new to SQL Server. I want to combine 01-JUL- and a variable with a year to get a date and am doing this:
select
*,
'01-Jan-1900' as from_date_x,
'01-JUL-' + from_finyr as to_date_x
into
bbt_item_6_a
from
bbt_item_5_finyrs
and am getting the following error:
Conversion failed when converting the varchar value '01-JUL-' to data type int.
I have tried searching for the answer but cannot get it.
Thanks