Coding task · SQL and MySQL course · Module 8: Subqueries
Combine titles from two categories
Combine the results of two SELECT queries with the UNION operator to get a single list without duplicates.
Task
Write a query that uses UNION to combine the titles of books from the category with kategoria_id = 1 and the titles of books from the category with kategoria_id = 2. In both queries select the tytul column from the ksiazki table.