Possible Duplicate:
Fetch the row which has the Max value for a column
I have two tables
1. A table USER with a USER_ID, NAME, ...
2. A table STATUS with a STATUS_ID, PEOPLE_FK (foreign key to USER_ID), LABEL, DATE_START...
A USER can only have one active status. I use the DATE_START field to keep the history of all status of the user. I never delete a status. If I create a join between USER and STATUS I can easely get all my users with all they status. BUT I would like to create a query to retriev all my users with they last status only. Is it possible ? What shoul I use ?