Dear,
I have table called Trn_Purchase
fields are
ItemCode
ItemDesc
PurchaseDates
Price
I want to get the last purchase price depend on date
table have e.g below data
| ItemCode | PurchaseDate | Price |
| A | 01-Mar-2010 | 4 |
| A | 02-Mar-2011 | 6 |
then result should
| itemCode | PurchaseDate | Price |
| A | 02-Mar-2011 | 6 |
How to do this
Thanks
Basit.

Vignesh ManiRank #98 · 22.1K reputationPosted Apr 15, 2016, 12:50 PM EDT
Rahul ChavanRank #2,671 · 521 reputationPosted Apr 15, 2016, 7:05 PM EDT
Basit KhanRank #4,768 · 326 reputationPosted Apr 16, 2016, 12:06 AM EDT