I have 2 tables 'users' and 'criteria'.
users
------------------------------
username, age, height, country
------------------------------
criteria
-----------------------------------------------------------
username, age_from, age_to, height_from, height_to, country
-----------------------------------------------------------
I want to write a query that 'users' age between 'age_from' and 'age_to'
AND
'users' 'height' between 'height_from' and 'height_to'