Get between ages from date of birth in sql
<p>I have a scenario in which I have to get those users whose age is between say (10 - 20) in sql, I have a column with date of birth <code>dob</code>. By executing the below query I get the age of all users.</p>

<pre><code>SELECT 
    FLOOR((CAST (GetDate() AS INTEGER) - CAST(dob AS INTEGER)) / 365.25) AS Age     
FROM users
</code></pre>

<p>My question is how should I write my query so that I can get that users whose age is between 10 to 20</p>