I am trying to sort a view out and part of the code as the below which brings back the Calendar Month and year back correctly. I want to join them together so I get something like 1/2020 M/YYYY
I would prefer to have a day but there is no date filed to use. the table only as Year and Month.
So how can I join them together, I have tried using + but cannot get it to work. Below is the part of the query that I want to join together. Thanks
(dbo.[148-vwQuantityUsedCheck_UsageP1].Month AS int) AS CalendarMonth, CAST(dbo.[148-vwQuantityUsedCheck_UsageP1].Year AS int)
I would prefer to have a day but there is no date filed to use. the table only as Year and Month.
So how can I join them together, I have tried using + but cannot get it to work. Below is the part of the query that I want to join together. Thanks
(dbo.[148-vwQuantityUsedCheck_UsageP1].Month AS int) AS CalendarMonth, CAST(dbo.[148-vwQuantityUsedCheck_UsageP1].Year AS int)