Overdue by -10 which means overdue by 10 minutes. How do i swap the '-10' to overdue by 10 minutes using case when in sql?

后端 未结 0 372
隐瞒了意图╮
隐瞒了意图╮ 2020-12-17 06:35

CASE WHEN Color LIKE \'%RED%\' THEN (10 - (DATEDIFF(MINUTE,Calltime,GETDATE()))) sometimes might give a -10 value. My question is when i get a value <0, how can I change

相关标签:
回答
  • 消灭零回复
提交回复
热议问题