I am running a query in SQL and I need to select a minimum date that is not 0000-00-00. Is there a way to exclude this value and select the next minimum date?
SELECT MIN(mydate) FROM mytable WHERE mydate > '0000-00-00'
select min(date) from tbl where date > '0000-00-00'