Search
Submit a request
Sign in
How can we help you today?
Categories
Submit a request
Submit a request
Sign in
Support
Community
SQL Prompt
Rule BP011 (A comparison or expression is using NULL without explicit provision for a NULL value.)
New post
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?
BrienKing
January 09, 2018 11:30
-
0
+
Comments
1 comment
Sort by
Date
Votes
Hi @BrienKing,
Thanks for getting in touch.
I'm having trouble parsing that query as " .[SchoolNumber]" is missing its alias.
Would it be possible to paste the whole snippet?
Best,
Michael
Michael Clark
January 11, 2018 13:35
-
0
+
Add comment
Please
sign in
to leave a comment.
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?