select * from ( select *, datepart(minute, yourDate) mn, row_number() over(partition by datepart(minute, yourDate) order by yourDate) rn from yourTable ) x where (mn % 5) = 0 and rn = 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)