Is is possible to group by a field an apply paging? I've tried it and it starts preloading all pages. I think in theory it should be possible to do without this preloading.
Any help appreciated!
Any help appreciated!
SELECT products.name, MIN(prices.value) AS cheapest_price FROM products LEFT JOIN prices ON prices.product_id = products.id GROUP BY products.name
Comment