I need to pull records from a mysql database which has everything stored as text.
The two fields i should query are stored like this format '19671011' type text and I need to select a range between and higher than.
How could I query a text field retrieving a particular month records?
select * from recordtable where birthday between () - () and anotherdate < '20081111'