Hi All,
Need help on the SQL Query
We have a Table

The Query need to fetch unique records based on combination of Batch, Emp No and Max Date
Tried the below query, but it is not fetching the desired results
SELECT
Table__14.UNIQUE_TRANSACTIONID,
Table__14.BATCH_NUMBER,
Table__14.EMP_NUM,
MAX(to_date(Table__14.START_DATE))
FROM
DI_CAPTURE Table__14
WHERE
Table__14.STATUS <> 'REJECTED'
GROUP BY Table__14.UNIQUE_TRANSACTIONID,Table__14.BATCH_NUMBER,Table__14.EMP_NUM,Table__14.START_DATE