I have a Mysql table where I store the years I get from a record, however I'm creating a search where the user selects from one date to another. In Mysql I did it this way:
SELECT * FROM tabela WHERE AnoEmpresa BETWEEN 1970 and 2014;
It does not return anything, even though it has data within those dates.