What is three-valued logic in SQL?

Explain what happens when a SQL comparison involves NULL. Why does WHERE x <> 1 exclude rows where x is NULL? How would you change the condition to keep those rows?

ExplainNULLMiddleAnalystData EngineerBackendQA