Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 54 Oracle Analytics and AI Sharing Center
- 26 Oracle Analytics and AI Lounge
- 314 Oracle Analytics and AI News
- 58 Oracle Analytics and AI Videos
- 16.4K Oracle Analytics and AI Forums
- 6.7K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 119 Oracle Analytics and AI Trainings
- 24 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Using non standard SQL queries with multiple conditions in a BI Publisher Data Model
Hi there,
I've followed the documentation from Oracle on conditional queries using an if else expression wrapped around SQL data models in BI Publisher.
Creating Data Sets Using SQL Queries
I can successfully run a non SQL query with a parameter in my data model where one condition is present using the following syntax
$if{ (:p_agg_pic_acc == Yes) }$
SQL Statement
$else{
SQL Statement
}$
$endif$
But I'm struggling to find a solution if I need two conditions to be met.
So for example trying something along the lines of the approach below
$if{ (:p_agg_pic_acc == Yes && :p_agg_zero_supp == Yes ) }$
Does anyone have any thoughts on the syntax ?
Thanks
Mark
Answers
-
Hi Mark,
Can you please try below?
$if{ (:p_agg_pic_acc == Yes) }$
$if{ (:p_agg_zero_supp == Yes) }$SQL Statement
$endif$$else{
SQL Statement
}$
$endif$
Thanks.
0
