Hi All,
I want to fetch data from a table that stores shifts. The query is able to fetch the data for all the shifts excepts for midnight that is falling between two days. like - 2300-0700 hrs or 2200-0600 hours. I am using UTC and I am using (start_tm<=to_char(SYS_EXTRACT_UTC(CURRENT_TIMESTAMP),'hh24mi')
and end_tm>=to_char(SYS_EXTRACT_UTC(CURRENT_TIMESTAMP) ,'hh24mi'))
here what other conditions I can use that would get me midnight too even if the data is pulled at around midnight. I have tried OR condition in addition with this and added 1 day to it but
it fails.
Regards,