Hi, I need to use this function in group by clause, thus I will prefer using trunc(sysdate) + trunc(to_number(to_char(sysdate, 'SSSSS'))/1800)/48. I really appreciate who replied, thank you. Regards, Derya.