How to check two times if they are in the same date or not ?
in the same date .
two different dates
You can use
CASE EXPRESSION :
SELECT CASE WHEN t.first > t.second THEN 'Two different dates' ELSE 'In the same date' END as your_ind FROM YourTable