select a.* from table a
where collectionTime between cast('2019-10-03 00:00:00' as datetime) and cast('2020-03-13 13:55:00' as datetime)
and datediff(minute,'2019-10-03 00:00:00',a.collectionTime)%10=0
and not exists(SELECT 1 FROM table b
where datediff(minute,a.collectionTime,b.collectionTime)=0
and b.collectionTime<a.collectionTime ) order by collectionTime asc
datediff(minute,'2019-10-03 00:00:00',a.collectionTime)%10
这段代码中间隔时间为10分钟,可根据需求,自行调整