Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.47 KB | None | 0 0
  1. SELECT offices.name, cities.name FROM offices FULL OUTER JOIN cities ON offices.city_id=cities.city_id;
  2. SELECT offices.name, cities.name FROM offices INNER JOIN cities ON offices.city_id=cities.city_id;
  3. SELECT offices.name, cities.name FROM offices LEFT OUTER JOIN cities ON offices.city_id=cities.city_id;
  4. SELECT offices.name, cities.name FROM offices CROSS JOIN cities
  5. SELECT offices.name, cities.name FROM offices RIGHT OUTER JOIN cities ON offices.city_id=cities.city_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement