I am making a report about an order containing multiple products. These products have multiple prices with in accordance multiple dates which reflects when these prices became effective. In this report I only need the most recent prices for every product. It ain't a problem to get the most recent date (max(date)), it is however a problem for me to filter out ONLY that line containing the most recent date with it's price for every product since it still gives me all the prices that existed for each product.
Can somebody tell me how I return only one row per product, with the most recent price?
(Everything in the report is ok, I only get multiple prices and dates for every product and I need only one row per product with the most recent price).
Thx in advance!
Can somebody tell me how I return only one row per product, with the most recent price?
(Everything in the report is ok, I only get multiple prices and dates for every product and I need only one row per product with the most recent price).
Thx in advance!