I want to use a constant date in the where clause and use case statement because I will be calling this query from java service.
SELECT DISTINCT LOGINID
FROM EMPLOYEES
WHERE EmployeeCode NOT IN ('L35', 'L36') and
CASE WHEN (CREATE_DT > '07-MAY-20') THEN CREATE_DT > ?
ELSE WHEN (CREATE_DT <= '07-MAY-20') THEN CREATE_DT < ? and XML_VAL NOT LIKE '%<Product>%' END
java service uses the above query and sends a date into it. If CREATE_DT is before or after that 07-MAY-20, the case statement should be used. My question is if I did this right?