I have a timestamp field and I just want to compare the date part of it in my query in Oracle
How do I do that,
SELECT * FROM Table1 WHERE date(field
You can truncate the date
SELECT * FROM Table1 WHERE trunc(field1) = to_Date('2012-01-01','YYY-MM-DD')
Look at the SQL Fiddle for more examples.