title: Problem Selecting Range of Records from mth to nth using Python pyodbc
body: <p>Target: I want to extract records from a Sybase IQ database table batch wise, due to the huge size of the database. That is in first batch 1-2 records, in 2nd batch 3-4 and so on.</p>
  <p>However, the query resulting in 1-2 but in next batch it's giving I am getting 4 rows rather than 2 as specified in TOP (2) clause</p>
  <p><a href="https://i.stack.imgur.com/pYT0B.png" rel="nofollow noreferrer">Two queries and respective output</a></p>