Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: USAGE OF ROUND AND TRUNC FUNCTIONS
ROUND returns date rounded to the unit specified by the format model.
The TRUNC (date) function returns date with the time portion of the day truncated to the unit specified by the format model.
SQL> select round (to_date('30jun2005','ddmonyyyy'), 'YEAR') from dual;
ROUND(TO_
ROUND(TO_
TRUNC(TO_
TRUNC(TO_