sql - Issue with null value using select statement -


i trying use select statement issue id trying use in select statement has null value. though id 542 has null value know fact in future going have 'complete' value in it. 3 possible values flag field complete, not complete , null. want achieve select statement see records flag not 'complete'. if run query now, not return if remove flag <>'complete' return record id 542 flag value null. here code

select id, dt, stat mytable id = 542 , flag <> 'complete' 

convert null text:

select id, dt, stat  mytable  id = 542 , isnull(flag,'null') <> 'complete' 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -