I have a table (in Oracle 9 and up) where I need to find all entries for a given day using Hibernate. The entries have timestamps (with data type \'date\'). Some of the entr
you can use the trunc() function to remove the time part in the DATE column.
eg : select * from emp where trunc(emp_date) < trunc(current_date()-30)
select * from emp where trunc(emp_date) < trunc(current_date()-30)
fetches all the employee details who were employed 1 month before