select * from tablename where 列2 in
(select max(列2) from tablename group by 列3);