1SELECT *
2 FROM weather INNER JOIN cities ON (weather.city = cities.name);
3
1-- This is in postgreSQL
2
3-- We have tableA and tableB, x is primary key in tableA and also
4-- a foreign key in tableB as y
5SELECT * FROM tableA JOIN tableB ON tableA.x = tableB.y;
6
7-- This will select all the columns from both tables that share a key