Hello I'm trying to delete all data ranging from 04/15/2014 to 03/16/2016. My problem is that the data type for the dates is varchar
. The format is m/d/Y. My current sql code is here
DELETE FROM ending_inventory WHERE STR_TO_DATE(dater, '%m/%d/%Y') BETWEEN '04/15/2014' AND '03/16/2016'
and it's not doing anything.
Is there a way to do this without changing the data type to DATE
? Because I already have tons of data..