I have a database which has following columns
id int
start datetime
end datetime
<other columns
The start and END is datetime of following format YYYY-MM-DD H24:MI:SS.MI. In a perfect world the END of yesterday will become start of today. However, there are times when the job doesn't run and it skips making an entry into the system. I want to write a query which can tell me which date is missing from the table (time doesn't matter).
For example, consider this
START END
2022-01-31 H24:MI:SS.MI 2022-02-01 H24:MI:SS.MI
2022-01-29 H24:MI:SS.MI 2022-01-30 H24:MI:SS.MI
I want to write a query which should be able to tell that start of 2022-01-30 is missing from the table.
EDIT
Bare minimum, the expected output should be 2022-01-30 (i.e., start is missing this date)