I have the following statement in my code.
update #cases
set
total_time = datediff(MINUTE,start_dt_for_calculations, end_dt_for_calculations )
I noticed after each run ( I mean if I run the script and in the next second run again ) the the following SQL Statement gives different output
Select count(*) from #cases where total_time < 0
Can anyone tell me what I am doing wrong with my output statement