Yes that's right, I'm doing this to check if any rows exists in a database before inserting a new row. So I'm wanting to count the number of rows based on my inputted start & end date.
Essentially only having one row for a period of time. Yes, I'm also checking the start if before the end before doing anything with my database.
I just can't have rows where dates overlap
So let's say i had one row like below
Start | End
3rd Dec - 10thDec
All three of these should return a count of 1 based on the above
Start | End
9th Dec - 18Dec
1stDec - 4th Dec
2nd Dec - 13th Dec