Question · SQL and MySQL course · Module 3: Filtering (WHERE)

Why = NULL does not work

Why does the condition WHERE data_zwrotu = NULL not work correctly?

Answer options

  • Because NULL means an unknown value and cannot be compared with the = sign; you must use IS NULL
  • Because NULL must be written in quotes: 'NULL'
  • Because with NULL we use == instead of =
  • Because NULL can only be compared with numbers

You can check the correct answer by solving this task in the CodeWorlds game.