select * from BASE_DCR_DUE where rowid in (select row_id from (select du_mode_code,max(rowid) row_id from BASE_DCR_DUE t group by t.du_mode_code))
select * from BASE_DCR_DUE where rowid in (select row_id from (select du_mode_code,max(rowid) row_id from BASE_DCR_DUE t group by t.du_mode_code))