select * from 表 a
where 时间 = (select min(时间) from 表 where datediff(day,时间,a.时间)=0)