I have here a price list table. What I need to get is the latest amount of item.
Here's my current query. SELECT item, price, max(date) FROM price;
Here's what I got with my query.
Results:
item    | max(price)  | max(date)
----------------------------------
ballpen |   300       | 2014-12-11
Table Structure
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+  ID  +    Item   +   Code    +  Price    +   Date     +  
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+  1   +  Ballpen  +  itm001   +  300      + 2014-07-29 +
+-------------------------------------------------------+
+  2   +  Ballpen  +  itm001   +  701      + 2013-08-29 +   
+-------------------------------------------------------+
+  3   +  Ballpen  +  itm001   +  700      + 2014-12-11 +
+-------------------------------------------------------+
+  4   +  Pencil   +  itm002   +  250      + 2014-12-11 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Expected Output
item    | max(price)  | max(date)
----------------------------------
ballpen |   700       | 2014-12-11
Pencil  |   250       | 2014-12-11
Any help will appreciate.
 
    