答案 0 :(得分:2)
以下是您问题的解决方案:
SELECT MAX(id) AS ID, conversationId, Max(date) AS Date
FROM Table_name
GROUP BY conversationId
答案 1 :(得分:1)
使用带有相关性的子查询
select *
from table t
where date = (select max(date) from table where conversationid = t.conversationid)