Answer by
Sting1 (686)
An example: DECODE (expr,search1,result1[,search2,result2]... [,default_val]);
The function DECODE in this case compares expr to every search(search1,search2... ) value one by one. If "expr" is equal to a "search1", then it returns "result1" else it compares "expr" to "search2" and so on. If no match is found, then "default_val" will be returned instead.