Basically I want to alter the boolean value selecting from the table:
e.g.:
SELECT otherColumns, not ysnPending FROM table
I need a column ysnPending = true if the value is false & false if the value is true.
Is there any function available to alter the Boolean value or I should use IIf or CASE…?
use
CASE, or if the bit field is non-nullable you could just subtract from 1.(Using
CASEmight lead to more understandable code.)If
ysnPendingis nullable, what behaviour do you assign toNOT?