How do we add leap years in the following query along with the month of February?
CASE
WHEN SUBSTR(RELEASE_DATE,1,4)<1900 OR SUBSTR(RELEASE_DATE,1,4)>9999 THEN '1900-01-01'
WHEN SUBSTR(RELEASE_DATE,6,2)>12 THEN '1900-01-01'
WHEN SUBSTR(RELEASE_DATE,9,2)>31 THEN '1900-01-01'
WHEN SUBSTR(RELEASE_DATE,6,2)=2 AND SUBSTR(RELEASE_DATE,9,2)>29...