Gunakan fungsi analitik:
SELECT *
FROM(
SELECT
VendorName,
IncidentID,
IncidentStatus,
IncidentDate,
MAX(IncidentDate) OVER (PARTITION BY VendorName) maxDate
FROM yourTable
) t
ORDER BY t.maxDate DESC, t.VendorName ASC, t.IncidentDate DESC
Lihat:http://docs.Oracle.com/javadb/ 10.8.2.2/ref/rrefsqlj13658.html http://docs.Oracle.com/cd/E11882_01 /server.112/e10592/functions003.htm http://docs.Oracle.com/cd/E11882_01 /server.112/e26088/functions004.htm