I have a simple select statement:
SELECT Date, Time, Order, Part, Price
FROM Mytable
ORDER BY Date DESC, Time DESC
The table contains deliveries made to our stores.
This may return rows with the same part number for different dates and times. I only wish to return the latest transaction for any particular item, so as per the grouping I want the first row occurrance of each item, ignoring the rest.
Is there a simple way of doing this? Thanks in advance
SELECT Date, Time, Order, Part, Price
FROM Mytable
ORDER BY Date DESC, Time DESC
The table contains deliveries made to our stores.
This may return rows with the same part number for different dates and times. I only wish to return the latest transaction for any particular item, so as per the grouping I want the first row occurrance of each item, ignoring the rest.
Is there a simple way of doing this? Thanks in advance