i have three table:
Person
ProductGroup
Price of each ProductGroup for Person with date
i want below result that get price of last date of each ProductGroup
help me pls
i get result by create table and then set cell by cell
but i want this in one query
2