Operand of unary minus must be interval Explanation: You used a unary minus operator with a datetime operand. Only intervals and numerics may be negated. User Action: Change the expression to use a different operator or operand.