I'm new in SQL . I'm converting mysql to SQL.
I've found an error when I use DateAdd function.
Here is the query:
SELECT
[id],
[test_code],
[test_name],
[test_price],
[discount],
DATEADD(CURRENT_TIMESTAMP, INTERVAL [test_duration] HOUR) as delivery_date,
[is_active]
FROM [icddrb_tblab].[dbo].[tb_test]
WHERE [icddrb_tblab].[dbo].[tb_test].[id] =0
It gives error: Msg 102, Level 15, State 1, Line 7
Incorrect syntax near 'test_duration'.'
Can anyone suggest me, where is the issue.