SQLServerCentral Article

TSQL Challenge 53 - Finding empty and non-empty intervals

,

TSQL Challenge 53 - Finding empty and non-empty intervals among many start-end intervals

A SQL Server instance is set up to log the session start time and end time into a table. Given this table, your job is to find all time intervals in which no one is logged in. For the intervals separated by these empty intervals show the maximum number of simultaneous users.

http://beyondrelational.com/blogs/tc/archive/2011/04/04/tsql-challenge-53-Finding-empty-and-non-empty-intervals-among-many-start-end-intervals.aspx

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating