hi ,
i am trying to use the decode function like this
SELECT decode(:p_group_by_value, 2,rl.group_code , 3,r.relative_code , 4,r.REG_DATE, null)
and there is an error because inconsistent datatypes (4,reg_date) .
is there a way to avoid that error ? or a replacement for decode function ?
thanks in advance