In the users table, I have a field called dob that stores the user's date of birth in this format:
1959-04-02
In any case, I would like to select all users who are 18 and 19 years old. This is my request:
SELECT * FROM `users` WHERE dob BETWEEN '1993-10-30' AND '1994-10-30'
But it only seems that they choose mainly 18 year olds and some (but not all) 19 year olds. I have a bunch of test users in db, and the number of 18 and 19 year olds is the same. However, this query gives about 90% of 18 year olds and about 10% of 19 year olds. Why?
TK123 source share