select * from your_table where 序列号 in
(
select max(序列号) from your_table group by 省名称
)

解决方案 »

  1.   

    select max(序列号) from 表 group by 省名称 试一试
      

  2.   

    select max(序列号)from 表 group by 省名称
      

  3.   

    select * from (
    select 序列号, 省名称, 市名称, 
    row_number() over(partition by 省名称 order by 序列号 desc) id
    from table_name)
    where id=1
      

  4.   

    select * from tablename a where exists
    (select 1 from tablename b group by b.省名称 having max(b.序列号) = a.序列号
    )
      

  5.   

    select max(序列号) from 表 group by 省名称
    这样肯定就可以取出来呀!
      

  6.   

    select * from tablename ta 
    where 
    not exists
        (select * from tablename where id<a.id and 省名称=ta.省名称)id不能重复
      

  7.   

    select max(序列号),distinct(省名称), 市名称 from your_table group by 省名称, 市名称
      

  8.   

    一楼已经是正解了。
    楼下的注意,楼主要的是max(id)对应的整条记录