Find date range overlaps within the same table, for specific user MySQL
Here is the first part: Overlapping cars per user… SQLFiddle – correlated Query and Join Query Second part – more than one user in one car at the same time: SQLFiddle – correlated Query and Join Query. Query below… I use the correlated queries: You will likely need indexes on userid and ‘car’. However – … Read more