I have a table structure where i can have multiple dates logged in a one to many relationship and need to retrieve the MAX date value in the table. Can anyone advise what the best recommended method would be to perform a join to obtain the MAX date value from a table? Specifically in the code below I would want to tweak this query to retrieve the max date value for the t.TimeEst field.
SELECT
a.VolumeID "WFID",
a.Manager,
t.TimeEst,
t.SALTRecordedBy,
t.SALTRecordedDate
FROM
ctxAssistanceWF a
JOIN ctxAssistanceSaltWF t
ON a.VolumeID=t.SaltWFID
WHERE
a.RowSeqNum=1
AND TO_CHAR(t.SALTRecordedDate, 'MM/DD/YYYY') = TO_CHAR(SYSDATE, 'MM/DD/YYYY')