Case语句大于SQL中的else部分

时间:2019-09-17 04:43:47

标签: sql-server-2012

您不能<=签名以防万一,然后分开

SELECT
    INSTALLMENTDATE,
    CASE 
       WHEN EMISTATUS = 0 THEN ''
       WHEN EMISTATUS = 1 THEN CONVERT(DATETIME, INSTALLMENTDATE -2, 103) 
            <= CONVERT(DATETIME, '2019-09-15', 120)
FROM
    LOANSCHEDULEDETAILS

0 个答案:

没有答案