select u.name as u_n ,c.name as c_n ,a.datefrom(select user_id, max(date) as date,client_idfrom login group by user_id order by user_id) a,user as u, client cwhere a.user_id = u.idand a.client_id = c.idorder by u.name建立子表,用普通方法查询(无需表连接)