php - MYSQL - FInd last date and group by IDUSER -


this question has answer here:

i have message system on site , see list of users sent me message while displaying last message of each user. same way facebook.

so, have table idusersender, iduserreceiver, date , message

i tried on several time take query can not have last message of each.

idea?

ok, again, try please

select message my_table iduserreceiver = 'my_id' , date in (select max(date) my_table group idusersender);  

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -