create table t1 (a varchar(10),b varchar(10))
insert t1
select '10','100'
union all select '10','200'
union all select '20','300'
union all select '20','400'
union all select '30','500'
select * from t1 where a in(select a from t1
group by A having count(A)>=2)
create table t1 (a varchar(10),b varchar(10))
insert t1
select '10','100'
union all select '10','200'
union all select '20','300'
union all select '20','400'
union all select '30','500'
select * from t1 where a in(
select a from(
select a,count(a) as cou from t1
group by a)aa
where cou>=2)