title: Android SQLite Query - Getting latest 10 records
body: <p>I have a database saved in my Android application and want to retrieve the last 10 messages inserted into the DB.</p>
  
  <p>When I use:</p>
  
  <pre><code>Select * from tblmessage DESC limit 10;
  </code></pre>
  
  <p>it gives me the 10 messages but from the <strong>TOP</strong>. But I want the <strong>LAST</strong> 10 messages. Is it possible?</p>
  
  <p>Suppose the whole table data is -</p>
  
  <pre><code>1,2,3,4,5....30
  </code></pre>
  
  <p>I wrote query <code>select * from tblmessage where timestamp desc limit 10</code></p>
  
  <p>It shows <code>30,29,28...21</code></p>
  
  <p>But I want the sequence as - <code>21,22,23...30</code></p>