title: SQLite query less than or greater than check
body: <p>I want to use this:</p>
  
  <pre><code>return mDb.query(DATABASE_TABLE, new String[] { KEY_ROWID, 
  KEY_LEVEL }, KEY_LEVEL + "&gt;= 3 AND " + KEY_LEVEL + " &lt; 5", null, null, null, null);
  </code></pre>
  
  <p>But instead of 5 I want it to check the next column where it finds greater than or equal to three.</p>
  
  <p>So when I give an input of say 5, I want it to check for greater than or equal to 5 in column 3 but less than the value in the next column, column 4.</p>
  
  <p>Original code taken from <a href="https://stackoverflow.com/questions/9692897/sqlite-query-check-less-than-and-greater-than">Sqlite query check - less than and greater than</a>.</p>