I have two MySQL tables:
- tbl_product: product_id, product_name, update_time, sale
- tbl_child_product: child_id, child_name, child_price, product_id
How to select all product with sale='1', order by update_time, the lowest price per product (store in child_price in tbl_child_product table) with one query?
Thank you!