Good day!
Anyone knows how to select latest record of an item..here's the scenario.
I have records with the same data except for the date.
Example:
product_code productname item_code date
PR-123 abc TY-01 2011-10-11
PR-123 abc TY-02 2011-10-11
PR-123 abc TY-01 2011-10-13
PR-123 abc TY-02 2011-10-13
PR-123 abc TY-01 2011-10-16
PR-123 abc TY-02 2011-10-16
I need to select this result:
PR-123 abc TY-01 2011-10-16
PR-123 abc TY-02 2011-10-16
Please help me to generate the select statement for this.
Thanks in advance.