I have a table with price changes and I need to get initial price and latest price.
In other words I want to display price values for min(StartDate) and max(StartDate) in one row for each product.
Table structure is simple:
ProductID, StartDate, Price
Desired result is
ProductId, StartDate, InitialPrice, LatestDate, LatestPrice
1 Answer