Hi sonty, just make sure, that the datatypes in the decode-statement are of the same type.
To run your query, you can do it like this: select decode(mod(column1,2),0,column2,to_char(column3)) from table_for_example; Greetings Lux --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Oracle PL/SQL" group. To post to this group, send email to Oracle-PLSQL@googlegroups.com To unsubscribe from this group, send email to oracle-plsql-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Oracle-PLSQL?hl=en -~----------~----~----~----~------~----~------~--~---