I have two columns of type DATETIME : one is called dataHoraSaida and another dataHoraRetorno in a table called trip. I would like to enter with two dates (a break) and know if there is any record already in that date range. Example: I would like to know if there is already a record in the 2017-01-01 00:00:00 2017: 01-09 00:00:00 range.
Thank you very much!