我知道,不过我要怎么样才能将重复的数据筛选出来,将重复的数据组成一组显示出来,然后人工判断是否真的重复,像Group by 一样,但是用Group by执行的话并不能准确的将重复的数据排组,不知道还有没其他的办法。没有什么特定条件,只要把这三个字段都相同的数据分组显示。

解决方案 »

  1.   

    将不同库数据自己填充到datatable中,并将数据关系对应你来,可以直接绑定到datagrid中
      

  2.   

    回神出鬼没,数据绑定填充Datatable都可以作到,问题怎么样才能将重复的数据分组呢?
      

  3.   

    用子查询
    select phone,grade,name from 
    (
    select count(*) as c ,phone,grade,name from table1 group by phone,grade,name) 
    as f where c>1
      

  4.   

    select y1.phone,x1.grade,x1.name from x as x1,y as y1 where (select count(*) from
    x as  x2,y as y2 where y1.phone=y2.phone and x1.grade=x2.grade and x1.name=x2.name)>0
      

  5.   

    谢谢zhobin和zzl0315的提示,从你们那里得到提示已经找到解决办法非常感谢!