title: Check whether a column returns a set of values in sql
body: <p>I have a table having a column which contain multiple occurrence of numeric values 1,2 and 3 only.</p>
  
  <pre><code>SELECT * from table1 where column_name=1
  
  SELECT * from table1 where column_name=2
  
  SELECT * from table1 where column_name=3
  </code></pre>
  
  <p>Is it possible that I can make these queries to a single query because calling 3 sql select query statement for a single requirement from a single table look awkward .
  I need to do something if the table has atleast single row for each condition.
  I have used the following query:</p>
  
  <pre><code>SELECT * 
  from table1 
  where column_name IN (1,2,3). 
  </code></pre>
  
  <p>It return the data even if column with any of the value doesn't exist in the table.I need to return the table if the table has at least one row for each where clause.</p>
  
  <p>I have also tried the following query:</p>
  
  <pre><code>SELECT *     
  FROM table1 
  where (column_name =1 
  AND column_name =2 AND column_name =3)
  //this returns null even if a single column has value 1,2 and 3
  </code></pre>