如果我理解正确你想要这样的东西:
select * from a left outer join c inner join b on c.bID = b.ID on a.cID = c.ID
对于我的情况,我需要为我的查询放置表别名才能正常工作:
SELECT * FROM ("purchased_items" p1 INNER JOIN "purchase_orders" po1 ON (po1."id" = p1."purchase_order_id")) AS p4 LEFT OUTER JOIN (purchased_items p2 INNER JOIN "purchase_orders" po2 ON (po2."id" = p2."purchase_order_id")) AS p5 ON (p4.item_variant_id = p5.item_variant_id AND p4.delivery_date < p5.delivery_date) WHERE p5.delivery_date IS NULL AND p4.delivered <> 0