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

Numbers without quotes

How do we correctly write the condition that the author's year of birth equals 1850?

Answer options

  • WHERE rok_urodzenia = '1850' - a number always in quotes
  • WHERE rok_urodzenia = 1850 - a number without quotes
  • WHERE rok_urodzenia = "1850"
  • WHERE rok_urodzenia equals 1850

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