Advanced Join Techniques: LATERAL Joins, Semi Joins, Anti Joins (opens in new tab)
LATERAL joins let a subquery in the FROM clause reference columns from earlier in the same FROM clause. Semi joins return rows where a match exists in another table, without duplicating those rows. Anti joins return rows where no match exists.
Read the original article