IBM Maximo: SQL Queries - tabela ESCREPEATTRACK

From Wiki
Revision as of 14:57, 28 March 2022 by Ebasso (talk | contribs) (→‎SQL Queries)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SQL Queries

Listar Escalações na tabela ESCREPEATTRACK que não estão mais ativas

select e.escalation
from ESCALATION e
where e.active=0 
and e.escalation in (select erp.escalation from ESCREPEATTRACK erp group by erp.escalation)

Listar Escalações ÓRFÃS na tabela ESCREPEATTRACK

select erp.escalation
from ESCREPEATTRACK erp
where erp.escalation not in ( select e.escalation from ESCALATION e)
group by erp.escalation

Ver também