I cant understand ur problem...
any way for ur query just add having conditions
whatever u want..
ex:
having (/* ur decode stmt */) is not null;

i hope this will solve ur problem
bye
komes