我很尴尬地说这是我在 SQL Server 中的弱点,我不知道如何让这段代码正常运行。它是几个不同的代码之一:
SUM(CASE WHEN RRDD Not Like '12%' AND RRDD Not Like '13%' AND RRDD Not Like '16%' AND RRDD
Not Like '17%' AND RRDD Not Like '2706%' AND RRDD Not Like '2707%' AND RRDD Not Like '2331%'
THEN CAST([2011 Total] AS FLOAT)*CASE WHEN IsNumeric [DUR_In_Hours] = 1 THEN
CAST([DUR_IN_Hours] AS FLOAT) ELSE 0 END) AS SP_DOM_COST
我得到的错误如下:
IsNumeric is not recognized and incorrect syntax near DUR_In_Hours