title: How to use loop in where condtion in T-SQL query?
body: <pre><code>select * from student where roll-no in (30 to 50)
  </code></pre>
  
  <p><code>student</code> is table name, <code>roll_no, first_name, last_name, add</code> are columns</p>
  
  <p>How to print student details whose roll no between 30 to 50?</p>