挺简单的一道题目,直接用开窗排序就好 select b.name, c.name, a.date from (select user_id, client_id, date, row_number()over(partition by user_id order by date desc) as da_rn from login )a left join (select id, name from ...