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'
Editing this to only return people for a certain month:
Here is a good link for SQL date calculations:
http://mysql-tips.blogspot.com/2005/04/mysql-date-calculations.html