title: How do I check if a record already exists in sql table?
body: <p>I have a simple <strong>table</strong> with two fields ( <strong>name</strong> and <strong>id</strong> ), it already consists of some values. How do i check if the <strong>name</strong> already exists and if it exists then check for <strong>id</strong> if it matches with the corresponding name.</p>
  
  <p>Thanks in advance.</p>