title: How to check if a specific record exists in a table in SQL Server?
body: <p>I want to check if a record exist with id 10 in <code>users</code> table. </p>
  
  <p>I was trying to use <code>exist</code> keyword in SQL, but I can't figure out the correct syntax for using <code>exist</code> to check whether a record exist. </p>
  
  <p>I want something like below</p>
  
  <pre><code>If ( exist (select id * from table where Id = id ) ) 
  {
  
  }
  </code></pre>