I'm writing a view to get hours of holiday count from the minutes.
Minutes data type is INT in the data table
I wrote this but it doesn't work:
DATEPART(HOUR, CONVERT(DATETIME, '00:' + CAST(S.availablevacations AS NVARCHAR(5)) + ':00:000', 114))
COMPILER ERROR: Create View failed because no column name was specified for column 6.