Below is the code I have for a query. This query shows
Processes, Operations, etc. Each Operation can have
duplicate entry's due to Multiple Effective Dates
(Effective_). I would only like to see the records
that match the latest Effective_ (date). If Operation
START-UP is listed three times due to three effective
dates 2007-01-04, 2007-01-08 & 2007-01-17 I would only
like to the the one associated with the 2007-01-17. Is
there a way to accomplish this in my query? I had
something like this earlier in the year and the query had
joins. This query has no joins and I do not know how to
modify the earlier posting to make it work for this Query.
Processes, Operations, etc. Each Operation can have
duplicate entry's due to Multiple Effective Dates
(Effective_). I would only like to see the records
that match the latest Effective_ (date). If Operation
START-UP is listed three times due to three effective
dates 2007-01-04, 2007-01-08 & 2007-01-17 I would only
like to the the one associated with the 2007-01-17. Is
there a way to accomplish this in my query? I had
something like this earlier in the year and the query had
joins. This query has no joins and I do not know how to
modify the earlier posting to make it work for this Query.
Code:
SELECT [4-5TPROC].PROCESS, [4-5TPROC].OPERATION, [4-5TPROC].OPERATION_, [4-5TPROC].EFFECTIVE_
FROM [4-5TPROC]
ORDER BY [4-5TPROC].PROCESS, [4-5TPROC].OPERATION;