select * from 表
union 
select * from 表

解决方案 »

  1.   

    select * from tablename a
    where not exists(select 1 from tablename where pname=a.pname and bath>a.bath)
      

  2.   

    既然没什么要求,那就取Bath最小的那条记录吧,
    select Pname, FromPlace, UnitType, bz, min(Bath), InPrice from 表名
    group by Pname, FromPlace, UnitType, bz, InPrice
      

  3.   

    select 除 Bath 所有字段,max(Bath)as Bath from 表 group by 除 Bath 所有字段
      

  4.   


    delete A from tablename A,tablename B
    where a.pname=b.pname and a.path>b.path