i have loanTable that contain two field loan_id and status
loanTable
loan_id
status
loan_id status ============== 1 0 2 9 1 6
In oracle database this is very simple.
select * from (select * from loanTable order by rownum desc) where rownum=1