SQL Server how to regroup interval of 5 minute into 1 of 15 minute?
问题 I'm building up a website where you can take an appointement online. I'll not explain all in detail but I have an table with my available time to take an appointment. Distributed into intervals of 5 min. Here's an example: ID StartDate EndDate 492548 2016-12-16 08:00:00.000 2016-12-16 08:05:00.000 492549 2016-12-16 08:05:00.000 2016-12-16 08:10:00.000 492550 2016-12-16 08:10:00.000 2016-12-16 08:15:00.000 492551 2016-12-16 08:15:00.000 2016-12-16 08:20:00.000 492552 2016-12-16 08:20:00.000