I have a table that stores start dates and end dates for sequential periods of an objects progress. This is to track when each object enters the next step of its progress
For example :
ObjectNum | Stage | StartDate | EndDate
1 |1 |2018-01-01 | 2018-02-24
1 |2 |2018-02-25 |
2 |1 |2018-01-01 |
Is there a way in SQL to search this table and find any object, where the difference between the end date of one stage and the start of the next sequential stage is more than 1 day?
Kind regards
Matt