I want to set 0 or 1 flag based on column value.if the value is > 0.0 AND <= 99.0 then 1 ,else 0 .
Score flag_score
0.083642 1
0.009542 1
0.999999 1
101.0000 0
select score Score, case when score > 0.0 AND score <= 99.0 then 1 else 0 end flag_score from table;