Skip to content
Advertisement

Oracle Apex – Case within a where statement

I’m having issues while running the following query (interactive report / simplified the query cause I’m sure the issue is with the case statement):

The error is this one: ORA-20999. Does someone know why this is happening? (:p28 items are calculated via computations and work perfectly)

Thanks!

Advertisement

Answer

Don’t use a case when boolean logic suffices:

The specific reason in your example is that Oracle doesn’t recognize a boolean expression as a valid return value for a case, resulting in a syntax error

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement