title: Search Same Column Same Table in SQL Server
body: <p>I try </p>
  
  <pre><code>select * FROM TABLE 1 where UID = 5
  
  
  if not Exist where UID=23
  </code></pre>
  
  <p>I want "select uıd=5 row" but it is not I want select uıd=23 row in TABLE 1 AND UID</p>
  
  <p>TABLE 1</p>
  
  <pre><code> Key | Short_text | UID | Boolean_value
  ******************************************
  Name | John       | 23  | null
  Male | NULL       | 23  | true
  Name | Ben        | 45  | null
  Male | NULL       | 45  | true
  </code></pre>
  
  <p>I am very new to SQK so I am not sure what I should do to achieve what I would like. Any help would be greatly appreciated.</p>