Question · SQL and MySQL course · Module 2: Querying data (SELECT)

Alias with a space

How do you correctly give a column an alias that contains a space, e.g. Rok wydania?

Answer options

  • rok_wydania AS Rok wydania - without quotes
  • rok_wydania = Rok wydania
  • rok_wydania -> Rok wydania
  • rok_wydania AS "Rok wydania" - the alias in quotes
Show the answer

Correct answer:

  • rok_wydania AS "Rok wydania" - the alias in quotes