The date is in datetime format. I need to do this check in a SQL join statement, but my results don't appear correct.
Code:
SELECT emp_ID, emp_EFF_DT FROM EMP_EMPLOYEE left outer join INS_COVERAGE ON emp_ID = ins_ID and current time > emp_EFF_DT and ((current time - 24 hours) < emp_EFF_DT)
Comment