CASE Expression with NULL Comparison?!

CASE expressions have NULL traps! NULL = NULL is UNKNOWN, not TRUE. The CASE logic handles this differently than you expect!

#sql #sqltricks #case #nullcomparison #threevaluedlogic #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #conditionallogic #advancedsql

https://www.youtube.com/watch?v=YRSRtwRZ4A0

CASE Expression with NULL Comparison?! #CASE

YouTube

CASE Expression with NULL Comparison?!

CASE expressions have NULL traps! NULL = NULL is UNKNOWN, not TRUE. The CASE logic handles this differently than you expect!

#sql #sqltricks #case #nullcomparison #threevaluedlogic #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #conditionallogic #advancedsql

https://www.youtube.com/watch?v=YRSRtwRZ4A0

CASE Expression with NULL Comparison?! #CASE

YouTube