title: data not showing with sno
body: <p>I have a table with two columns <code>sno</code> and <code>userid</code></p>
  
  <p>What I want is that when a record with the same <code>userid</code> is inserted into the table then <code>sno</code> increases (like for first record <em>1</em> and second record <em>2</em>).</p>
  
  <p>If a record with new <code>userid</code> inserts then <code>sno</code> starts from first (like for first record <em>1</em> and second record <em>2</em>) </p>
  
  <p>Kindly help me.....</p>