Below is SQL for a Query I have.
It is giving me the max date but I really want only the Max date for Operation_1.
If there are multiple entrys for Operation_ then I am getting multiple Max dates. Does
anyone know how I can modify the query to show Max date for Operation_1 only
once?
It is giving me the max date but I really want only the Max date for Operation_1.
If there are multiple entrys for Operation_ then I am getting multiple Max dates. Does
anyone know how I can modify the query to show Max date for Operation_1 only
once?
Code:
SELECT OPREF.PROCESS, OPREF.OPERATION, OPREF.OPERATION_, OPREF.OPERATIO_1, Max(OPREF.EFFECTIVE_) AS MaxOfEFFECTIVE_
FROM OPREF
GROUP BY OPREF.PROCESS, OPREF.OPERATION, OPREF.OPERATION_, OPREF.OPERATIO_1
ORDER BY OPREF.PROCESS, OPREF.OPERATION, Max(OPREF.EFFECTIVE_);