A self-join query joins a table against itself.
MYDB.SCHEMA(USER)=> SELECT W1.city, W1.temp_lo AS low, W1.temp_hi AS high,
W2.city, W2.temp_lo AS low, W2.temp_hi AS high
FROM weather W1, weather W2
WHERE W1.temp_lo < W2.temp_lo
AND W1.temp_hi > W2.temp_hi;
The example query relabels the weather table as W1 and W2 to distinguish between the left and right side of the join.