Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
How to get Last Purchase price in SQL
basit khan
Apr 15 2016 1:32 PM
420
Reply
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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Full Text Index
Upload Data from ExcelSheet to Sql Database