I have two variables @date of type datetime and @time of type time. I want to add both to get another datetime variable. And I want to perform further calculations on it.
Ex:
Declare @date datetime
Declare @time time
I want something like this
@date = @date + @time (but not concatenation)
SELECT @Startdate = DATEADD(DAY, -1, @date )
Is there any way?
