bsc cell
LZ2 ML01
LZ2 ML01
LZ2 ML02
LZ2 ML03
LZ3 ML07
LZ3 ML01
LZ4 ML10
LZ5 ML02
查找重复的CELL ,同一个BSC不显示
想要结果
bsc cell
LZ2 ML01
LZ3 ML01
LZ5 ML02
LZ2 ML02
select * from Table a
where a.cell in (select b.cell from Table b)
上面的是错误的,正确的:
select * from Table a
where (select count(*) from Table b where b.cell=a.cell)>1
select distinct bsc,cell from xx a where (select count(*) from xx b where b.cell=a.cell )>1