select a.* from tbl as a
 inner join (select 名称,负责人
             from tbl
             group by 名称,负责人
             having count(*)>1) as b
  on a.名称=b.名称 and a.负责人=b.负责人

解决方案 »

  1.   

    select  编码,名称,负责人
    from tb 
    group by 编码,名称,负责人
    having count(*)>1
      

  2.   

    select b.* from (select 名称, 负责人 from table group by 名称,负责人 having count(1)>1) a, table b 
    where a.名称=b.名称 and a.负责人=b.负责人
      

  3.   

    select a.* from 表 a,(select 名称,负责人=max(负责人) from 表 group by 名称 having count(*)>1)b
    where a.名称=b.名称 and a.负责人=b.负责人
      

  4.   

    select a.* 
    from tablename a join 
         (  select 名称,负责人 from tablename group by 名称,负责人 having count(*)>1) b
         on a.名称=b.名称 and a.负责人=b.负责人
      

  5.   

    select * 
    from t a 
    where (select count(*) from t where 名称=a.名称 and 负责人=a.负责人)>1
      

  6.   

    看错了
    select a.编码,b.名称,b.负责人tb a,
    (
    select  名称,负责人
    from tb 
    group by 名称,负责人
    having count(*)>1) b
    where a.名称=b.名称 and a.负责人=b.负责人