CartoonDog
IS-IT--Management
Many thanks in advance.
Assume the table is as listed below.
Trans_ID Date_Entered Part_ID
-------- ------------ -------
1 01-DEC-01 1234
2 03-NOV-03 1234
3 01-SEP-02 1234
4 01-OCT-03 1111
I need to be able to select the row with the lastest date for a given part number. Such as:
Select Trans_ID, Date_Endtered, Part_ID
from table
where Part_ID='1234';
But how do I get only the row with the lastest date? I dont know if I am missing a basic command or need to do some sort of recursive query.
Thanks.
Assume the table is as listed below.
Trans_ID Date_Entered Part_ID
-------- ------------ -------
1 01-DEC-01 1234
2 03-NOV-03 1234
3 01-SEP-02 1234
4 01-OCT-03 1111
I need to be able to select the row with the lastest date for a given part number. Such as:
Select Trans_ID, Date_Endtered, Part_ID
from table
where Part_ID='1234';
But how do I get only the row with the lastest date? I dont know if I am missing a basic command or need to do some sort of recursive query.
Thanks.