i have loanTable that contain two field loan_id and status
loanTable
loan_id
status
loan_id status ============== 1 0 2 9 1 6
Does your table happen to have a primary id or a timestamp? If not then what you want is not really possible.
If yes then:
SELECT TOP 1 status FROM loanTable WHERE loan_id = 1 ORDER BY primaryId DESC -- or -- ORDER BY yourTimestamp DESC