SELECT trunc(sysdate) + trunc(to_char(sysdate, 'sssss') / 1800) / 48 FROM dual ;
Group by即可。
转载于:https://my.oschina.net/kanlianhui/blog/152036