Vous êtes sur la page 1sur 1

Use the below SQL to find all DBIs based on ANC tables

-------------------------------------------------------------------------------
SELECT d.base_user_name DBI_NAME
, d.data_type DBI_DATA_TYPE
, (select listagg ('<' || rcu.sequence_no || ',' || c.base_context_name || '>', ',
')
within group (order by rcu.sequence_no)
from ff_route_context_usages rcu
, ff_contexts_b c
where rcu.route_id = r.route_id
and rcu.context_id = c.context_id) ROUTE_CONTEXT_USAGES
from ff_database_items_b d
, ff_user_entities_b u
, ff_routes_b r
where UPPER(d.base_user_name) LIKE 'ANC%'
and d.user_entity_id = u.user_entity_id
and r.route_id = u.route_id;

Use the below SQL to find the inputs available for Time Calculation Rules formula:
-----------------------------------------------------------------------------------
SELECT NAME, DISPLAY_NAME, ATTRIBUTE_TYPE FROM HWM_TM_ATRB_FLDS_VL

Use the below SQL to get the contexts of a DBI


-----------------------------------------------------------------------------------
SELECT DBI.USER_NAME,BASE_CONTEXT_NAME
FROM FF_DATABASE_ITEMS_VL DBI,
FF_USER_ENTITIES_VL USERENT,
FF_ROUTES_VL ROUTES,
FF_ROUTE_CONTEXT_USAGES RCU,
FF_CONTEXTS_VL CON
Where DBI.USER_ENTITY_ID = USERENT.USER_ENTITY_ID
AND USERENT.ROUTE_ID = ROUTES.ROUTE_ID
AND DBI.base_USER_name = <DBI Name>
AND ROUTES.ROUTE_ID = RCU.ROUTE_ID
AND CON.CONTEXT_ID = RCU.CONTEXT_ID

Use the below SQL to get the contexts for formula type
-----------------------------------------------------------------------------------
-
select FT.BASE_FORMULA_TYPE_NAME, BASE_CONTEXT_NAME FROM
ff_contexts_vl CON,
ff_ftype_context_usages FCU,
FF_FORMULA_TYPES_VL FT
WHERE FT.formula_type_id = FT.formula_type_id
AND FCU.FORMULA_TYPE_ID = FT.formula_type_id
AND CON.CONTEXT_ID = FCU.CONTEXT_ID
AND FT.BASE_FORMULA_TYPE_NAME =<Formula type name>