Postgresql – SQL how you would rewrite this query without crossjoin?
I have heard I should avoid cross join so my question is how you would rewrite this query without cross join ? SELECT p.*, po.*, pt.* FROM product p CROSS JOIN LATERAL ( SELECT json_agg(name) AS product_options FROM product_options po…