11.5.1.1 Defining Authorization Rule with SQL
Use an Exists SQL Query authorization Scheme Type to define a rule based on a query.
As shown below, the Manages Others rule uses the following query that retrieves a row if at least one employee has the current user's EMPNO as its MGR value:
select 1
from eba_demo_emp
where mgr = (select empno
from eba_demo_emp
where ename = :APP_USER)
fetch first row onlyFigure 11-20 Using SQL to Define Authorization Scheme Rule for Managers
Parent topic: Using SQL and PL/SQL Authorization Rules
