Click in order · SQL and MySQL course · Module 8: Subqueries

Titles of two categories with UNION

Click the elements in the order in which we build a query that joins two lists of titles with the UNION operator:

Items to click

  • SELECT tytul FROM ksiazki WHERE kategoria_id = 1
  • SELECT tytul FROM ksiazki WHERE kategoria_id = 2
  • ;
  • UNION

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