For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Oracle Enterprise Manager App for Grafana user experience
Note: The minimum supported Enterprise Manager version is EM13.4 RU3 which works with Oracle Enterprise Manager App for Grafana v1.0.2
select ID, min(case when Val in('aaa','ccc') then 1 else 0 end) as chk1, max(case when Val in('aaa','ccc') then 1 else 0 end) as chk2, max(case when Val='aaa' then 1 else 0 end) *max(case when Val='ccc' then 1 else 0 end) as chk3, min(case when Val in('aaa','ccc') then 0 else 1 end) as chk4, max(case when Val in('aaa','ccc') then 1 else 0 end) as chk5 from boolEx1 group by ID order by ID; ID CHK1 CHK2 CHK3 CHK4 CHK5 -- ---- ---- ---- ---- ---- 1 0 1 1 0 1 2 1 1 1 0 1 3 0 1 0 0 1 4 0 0 0 1 0
"max(case when P(X) then 1 else 0 end) = 1" is for some X:P(X) "min(case when P(X) then 1 else 0 end) = 1" is for all X:P(X) "max(case when P(X) then 0 else 1 end) = 1" is for some X:not(P(X)) "min(case when P(X) then 0 else 1 end) = 1" is for all X:not(P(X))
"max(case when P(X) then 1 else 0 end) * max(case when Q(X) then 1 else 0 end) = 1" is for some X:P(X) and for some X:Q(X)
SQL> select ID, 2 min(case when Val in('aaa','ccc') then 1 else 0 end) as chk1, 3 max(case when Val in('aaa','ccc') then 1 else 0 end) as chk2, 4 max(case when Val='aaa' then 1 else 0 end)*max(case when Val='ccc' then 1 else 0 end) as chk3, 5 max(case when Val in('aaa','ccc') then 0 else 1 end) as chk4, 6 min(case when Val in('aaa','ccc') then 0 else 1 end) as chk5 7 from boolEx1 8 group by ID 9 order by id; ID CHK1 CHK2 CHK3 CHK4 CHK5 ---------- ---------- ---------- ---------- ---------- ---------- 1 0 1 1 1 0 2 1 1 1 0 0 3 0 1 0 1 0 4 0 0 0 1 1