Given a table with the following columns
comment
minAge
maxAge
and the following rows:
comment, minAge, maxAge
"Baby", 1, 5
"Teen", 13, 19
"Adult", 20, 50
Is it possible to do a sql query like:
select * from rows where 16 between minAge and maxAge
With the results:
"Teen", 13, 19