声明我有一个select语句:如果基于其他列
select DATEDIFF(day,[Contract Start Date],[Contract End Date]) as contract_time
from table 1
现在,如何在语句添加到下一列:
contract_time >= 390 then display A
contract_time < 390 then display B
contract_time is null display C? (because Contract start date or End date can be null)
感谢您的帮助!
感谢快速反应! – 4est
很高兴帮助:-) –