You know you need more coffee when you do decode(col,null,'Y') instead of nvl(col,'Y').
#JustOracleProblems #SendCoffee