Wednesday, December 9, 2009

Test positive to reject negative ?

I have an actual serious question for all you readers out there.

The question is to test for positive or test negative.
Example :

select 1 from some_table where some_flag = 0
/
select 1 from some_table where some_flag <> 1

Which is 'the best' and the most correct solution.
Bash away :)

Cheers.