Hello,
I've such a problem:
There are 2 tables "products" and "prices"
products
pk_product_id | product_name
prices
fk_product_id | price1 | price2 | ins_date
In the table "products" I keep product information and in "prices" - its prices. Field "ins_date" allows me to have price history for all products.
The problem is, that I want to select max(ins_date) for current product and then select "price1" and "price2" for it.