title: Retrieving last inserted 'n' rows from a table
body: <p>I want to retrieve last inserted 'n' number of rows from an SQLite table. I used the below query but I'm getting error, please help me to correct my query. If my query is wrong please suggest me a better query:</p>
  
  <pre><code>public Cursor readLastNDetails(int n)
  {
      return this.data.rawQuery("SELECT TOP ("+n+") Name,Place,occupation,Date from  tb_Employee order by id DESC", null);
  }
  </code></pre>