How can I use decode where a value can be either yes or no:
DECODE(some_variable, NULL, 'N','N','N','Y') = DECODE('E', 'I', 'Y', 'E', 'N', 'A', 'Y' or 'A', 'N')
In other words if the value if 'A' I want rows where a certain field has 'Y' and 'N'
getjbb