select top 1 * from tb a
where exists(select 1 from tb where A01=a.A01 and A02=a.A02 group by A01 having count(*) >1)
where exists(select 1 from tb where A01=a.A01 and A02=a.A02 group by A01 having count(*) >1)
from table1 a
where (select count(*) from table1 where a.A01=A01) >1