title: Select database rows in range
body: <p>I want to select the rows between A and B from a table. The table has at least A rows but it might have less than B rows.
  For example if A = 2, B = 5 and the table has 3 rows it should return rows 2 and 3.</p>
  
  <p>How could I get the rows in such a range?</p>
  
  <p>I am using Microsoft SQL Server 2008.</p>