Can anyone help, im trying to concatenate data together. However im not getting the correct results.
What I have is a productiondate which I want to take the year and month and concatenate together.
eg
200602
200512
200401
I've tried:
select cast(year(productiondate as varchar)) & cast(month(productiondate as varchar))
from table1
What am i doing wrong?
What I have is a productiondate which I want to take the year and month and concatenate together.
eg
200602
200512
200401
I've tried:
select cast(year(productiondate as varchar)) & cast(month(productiondate as varchar))
from table1
What am i doing wrong?