0
Select * from table where col1 <> 'R' 

col1 has various values and also has NULL how to write the where statement which includes all also the NULL value except the 'R' string

Kanted
  • 169
  • 1
  • 12

1 Answers1

1
Select * from table where col1 <> 'R' OR col1 IS NULL

For get null value use IS NULL, if you also expect value of 'R', add col1 <> 'R'.

Tushar
  • 568
  • 3
  • 13