怎么取同一张表里两条记录的相同内容

如何取同一张表里两条记录的相同内容sql server数据库表结构如下:分段名检测点HB01IB01HB01IB02HB01IB03HB

如何取同一张表里两条记录的相同内容
sql server数据库
表结构如下:
分段名 检测点
HB01 IB01
HB01 IB02
HB01 IB03
HB02 IB01
HB02 IB02
想得到如下表:
检测点
IB01
IB02

[解决办法]

SQL code
select distinct(检测点) from tb as a where (select count(*) from tb as b where a.检测点=b.检测点) > 1