Hi Everyone,
A pleasure being here, I was hoping someone could lend me a hand with the following query, I'm trying to display a number using a KPI through in a startcenter, it deals with "Leak Investigations with no follow up WO's" - I really appreciate your feedback and thank you for such an awesome resource, a little caveat I did not write this query, it was inherit to me.
under the "Select" pane I have
select count (1)
from workorder.workorderspec
under the "Where" pane I have
(classstructureid in (select workorderspec.classstructureid
from workorderspec where classstructureid is not null
and workorderspec.refobjectid = workorder.workorderid
and workorderspec.assetattrid= 'PLLEAKCLASS'
and upper(workorderspec.alnvalue) != 'NOLEAK' ))
and ((jpnum = 'INVEST-LEAK-D' or jpnum = 'RSPND-GO-D'))
and wonum not in (select recordkey from relatedrecord where relatedrecclass = 'WORKORDER')