Hi,
I have a field that is a Time(4) datatype.
I need to make a computed field in the table that checks if you subtract 52 secs. from the Time field is 0 then 0 else the time field value.
So I have :
alter table [DMPCRU].[dbo].[VaspianCalls] add [Hold_Time] as (iif(DATEADD(ss,-52,Duration)<0,0,Duration))
But this doe not work:
Comes back with
Operand type clash: time is incompatible with tinyint
Any ideas of what I can do?
Thank you