SELECT * FROM a CROSS JOIN b CROSS JOIN c WHERE a.id = b.id AND b.ref = c.id;
SELECT * FROM a JOIN (b JOIN c ON (b.ref = c.id)) ON (a.id = b.id);
- but the second and third take less time to plan than the first. This effect
+ the second and third take less time to plan than the first. This effect
is not worth worrying about for only three tables, but it can be a
lifesaver with many tables.
(SELECT * FROM a, b, c WHERE ...) AS ss
ON (...);
- Here, joining D must be the last step in the query plan, but the
- planner is free to consider various join orders for A, B, C.
+ Here, joining to D must be the last step in the query plan, but the
+ planner is free to consider various join orders for A, B, and C.