>select * from mytable where Alltrim(Str(Val(IIF(<B>"YES" = </B>"YES",1,0)))) = Alltrim(Str(Val(IIF(<B>"NO" = </B>"NO",0,1)))) >