Hi all,Need some help to formulate a query. Here's what I'm trying to doTransID MemberID FundID BuyPrice Date1 501 101 $104 2013-01-242 501 102 $101 2013-04-233 501 102 $118 2013-02-044 501 102 $98 2013-05-195 501 103 $53 2013-05-216 501 103 $39 2013-07-09
I'm trying to get the latest buy price for each fund a member bought.So in the above example, I'm trying to formulate a query to retrieve all the latest bought price for memberid 105:Desire Query ResultTransID MemberID FundID BuyPrice Date1 501 101 $104 2013-01-244 501 102 $98 2013-05-196 501 103 $39 2013-07-09
So far, I've tried using Group By clause on FundID and BuyPrice and MAX() function for the date, but I can' get the TransID.Thanks in advance.