Compare the sums of 2 separate columns with an SQL Statement

后端 未结 0 799
没有蜡笔的小新
没有蜡笔的小新 2021-01-17 05:03

I need help with the following code:

SELECT ID, (CASE WHEN SUM(ArrivalsDelay) > SUM(DeparturesDelay) THEN ArrivalsDelay WHEN SUM(ArrivalsDelay) < SUM(De         


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