I've got this table here with startDate, endDate, startTime and endTime column.
startDate endDate startTime endTime
2020-01-01 2020-01-02 13:00:00 11:00:00
2020-01-14 2020-01-14 08:00:00 16:00:00
2020-02-01 2020-03-01 12:00:00 12:00:00
I've also got this new set of data:
startDate endDate startTime endTime
2020-01-12 2020-01-15 13:00:00 11:00:00
2020-01-29 2020-02-10 08:00:00 16:00:00
How can I check if the new set of data will have any conflicts with the dates and times which are already in the table? And can I also get a list of dates and times from the table?
Update - What I've already tried is to combine startDate and startTime into a new column as startDateTime where it'll hold datetime datatype so I can just use in between statement to check it but I can't seem to combine those two columns together.