pull the water into:如何在 DISTINCT的同时对记录排序

来源:百度文库 编辑:高校问答 时间:2024/05/02 07:39:45
select DISTINCT reg_name from info order by ddate
说明:表info中reg_name地记录不唯一,所以想找出reg_name唯一的记录,希望找到的唯一一条记录是ddate(日期型)最新的,请高手指点。

可以用一个degree
在数据库书上有