:
select *
from table A
where cast(timestamp_column as date) = date '2013-10-22';
I assume that you just showed an example, because I don’t think you might have a column with a name date; it is a reserved word. The keyword " date " is indicated above, since you specify an ANSI date constant and are not related to the "date" function.
source
share