when iam working with "year<1970" in sql I got different answer and using this "WHERE CAST(SUBSTR(M.year,-4) AS UNSIGNED) < 1970" i got the actual