I can only describe the question by example.. If I have this data
use-id user-name add-date
---------------------------------------------------
2 sami 17/1/2011
2 sami 18/1/2011
3 alaa 18/1/2011
4 jamal 19/1/2011
I want to select the newest row for each user, I want this data to result :
use-id user-name add-date
---------------------------------------------------
2 sami 18/1/2011
3 alaa 18/1/2011
4 jamal 19/1/2011
for each unique user-id I want to get the newsest added record. how ?