Needs query help on updating

  • 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

  • The temporary #cases table isn't updating while your other update is running correct?

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply