I want to delete all data from a table that has a date prior to 01/01/2006
I am trying this:
delete from table_a
where to_char(last_update_date,'MM/DD/YYYY') < to_char('01/01/2006', 'MM/DD/YYYY')
But this is not working.
What is the best way to compare date's in sql?