title: How to find other than current value in SQL Server?
body: <p>In SQL Server, how can I get data from a column other than specified data.
  For example, I have a column with data "MySQL,Server,Database" in single row. </p>
  
  <p>Now I want to find if there is any other value than MySQL in that column.</p>
  
  <p>I tried by using Not Like but didn't succeed.</p>
  
  <p>For example TableA :</p>
  
  <pre><code>id |   Code   
  ---+---------------------------
   1 |   mysql,sqlserver,database    
   2 |   mysql    
   3 |   sqlserver,database 
   4 |   mysql,mysql
  </code></pre>
  
  <p>Here, I want to find if the column has data other than "mysql" or not, like id:1 has data other than "mysql" but id:2 have "mysql" but not other than "mysql". 
  Finally if I want to return the null or blank value if there no any data other than "mysql".</p>
  
  <p>Code I used so far :</p>
  
  <pre><code>select code from tableA where code not like '%mysql%'
  </code></pre>