I'm new to PL/SQL, so bear with me. I'm wanting to use the decode function in the following manner:
DECODE(ORD.NOTE,'Order exported%','TRUE','FALSE') AS ORDER_NOTE
I'm obviously looking for anything with the ORD.NOTE field starting with "Order exported". But right now I'm getting back everything listed as FALSE. When I put the entire field value in the decode statement (Order exported: 08012004) it does define those fields as true. So when I'm using the decode function, A) can I use a wildcard like this and B) do I have to use a like statement or something along those lines.
Thanks much,
MicahDB
DECODE(ORD.NOTE,'Order exported%','TRUE','FALSE') AS ORDER_NOTE
I'm obviously looking for anything with the ORD.NOTE field starting with "Order exported". But right now I'm getting back everything listed as FALSE. When I put the entire field value in the decode statement (Order exported: 08012004) it does define those fields as true. So when I'm using the decode function, A) can I use a wildcard like this and B) do I have to use a like statement or something along those lines.
Thanks much,
MicahDB