Rule BP011 (A comparison or expression is using NULL without explicit provision for a NULL value.)

This rule is not appropriate for a CASE statement.

CASE [s2].[SchoolID]
WHEN NULL THEN .[SchoolNumber]
ELSE [s2].[SchoolNumber]
END AS [SchoolNumber]

Unless what you're saying is that .SchoolNumber could also be NULL?
Tagged:

Answers

Sign In or Register to comment.