Getting the last record in SQL in WHERE condition

Viewed 54633

i have loanTable that contain two field loan_id and status

loan_id status
==============
1       0
2       9
1       6
5       3
4       5
1       4  <-- How do I select this??
4       6

In this Situation i need to show the last Status of loan_id 1 i.e is status 4. Can please help me in this query.

9 Answers
Related