title: compare two comma separated values in mysql and get the matched count
body: <p>Compare comma separated values in mysql and get the matched output in countcolumn</p>
  
  <p>Example: </p>
  
  <pre><code>id   values 
   1    1,2,3
   2    3
   3    1,3
  </code></pre>
  
  <p>By comparing id 1 and 2 the output should be 1</p>
  
  <p>By comparing id 2 and 3 the output should be 1</p>
  
  <p>By comparing id 3 and 1 the output should be 2</p>