join two tables postgres code example Example: psql join SELECT * FROM weather INNER JOIN cities ON (weather.city = cities.name);