title: Cross checking query on the same table
body: <p>How do I write a query to display records where <code>sample1_id = 3</code> and <code>sample2_id = 5</code>  or <code>Sample1_id = 5</code> and <code>sample2_id =3</code>. </p>
  
  <p>Meaning it should check the row of <code>sample1_id</code> and see wherever there is a record of 5 in line with <code>sample2_id</code> having a record of 3 and also checked if <code>sample1_id</code> is having a record of 5 line with <code>sample2_id</code> having a record of 3.</p>
  
  <p>I hope my question do make sense</p>
  
  <p><img src="https://i.stack.imgur.com/a9x85.jpg" alt="enter image description here"></p>