I have trans table contains Productid, price, date, supplerid feilds How can i get last price for each item and each suppliers as in picture
i have same database on sql server and i got help.
The sql statement works perfectly as bellow
select max(date) as date, productid, max(qty) as...