In my Sybase world, I'm trying to generate a decimal value for the following SELECT statement:
sum(datediff (hh,DateCol_1, DateCol_2))/ 31
This works in SQL Server:
select cast(sum(datediff (hh,DateCol_1, DateCol_2))/ 31 as decimal (18,9))
It is not working in Sybase.. Is there a CONVERT fucntion I cantry?
BT