Hi,

I have a problem within a Java application using a MAX DECODE SQL statement. So heres a sample of the code im using:

SELECT ReaderID,
MAX(DECODE (cause, 0,sequence+ 1, -1)) AS...