Amazon inventory systems track every price change for every product. Management needs a report showing the price of every product exactly on 2019-08-16.
The price of a product at a given date is the price set by the most recent change on or before that date. If a product has no price changes recorded on or before 2019-08-16, its price is assumed to be 10.
Write a query to find the prices of all products on 2019-08-16.
Rules:
- Include every product that exists in the system.
- If no price change exists on or before 2019-08-16, the price defaults to 10.
- Output columns: product_id, price.
- Results must be sorted by product_id in ascending order.