Mysql – The minimum value from each category
I want to get out the minimum price for categories 1, 2 and 3 I've used LEAST(MIN(price_reduced),MIN(price)) IFNULL(MIN(price_reduced),MIN(price)) ... WHERE price <> 0 and price_reduced <> 0 Database id category price price_reduced 1 1 200 100 2 1 300 0…