110,538
社区成员
发帖
与我相关
我的任务
分享
select * from A where A2=(select max(A2) from A a2 where a1.A1=a2.A1)
select table1.* from table1, (select A1, Max(A2) A2 from table1 group by A1) table2
where table1.a1 = table2.a1 and table1.a2=table2.a2
select * from A a1 where A2=(select max(A2) from A a2 where a1.A1=a2.A1)