Pets


Joins Public

Hard  

3min

Information about pets is kept in two separate tables:

TABLE dogs
  id INTEGER PRIMARY KEY,
  name VARCHAR(50) NOT NULL

TABLE cats
  id INTEGER PRIMARY KEY,
  name VARCHAR(50) NOT NULL

Identify all the queries that select all distinct pet names.