BI Publisher (MOSC)

MOSC Banner

Conditional Query not working $if{$elseif{$else Exception invalid statement

edited Jun 16, 2020 9:55AM in BI Publisher (MOSC) 8 commentsAnswered

Hi,

I tried doing a basic conditional query in Oracle Fusion OBIEE but I am getting invalid statement error.

Below is the query for reference:

$if{ (:P_CLASS == 'INV') }$

select distinct * from RA_CUSTOMER_TRX_ALL Where trx_class = 'INV'

$elsif{ (:P_CLASS == 'DM') }

select distinct * from RA_CUSTOMER_TRX_ALL where trx_class = 'DM'

$else{

select distinct *

from RA_CUSTOMER_TRX_ALL

Where trx_class = 'CM'}

$endif$

Regards,

Manish Singh

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center