SELECT pmo.RESOURCEID,pmo.DISPLAYNAME as MONITOR,cmo.DISPLAYNAME as PROCESS FROM AM_ManagedObject pmo INNER JOIN AM_ManagedResourceType mrt ON pmo.TYPE = mrt.RESOURCETYPE and mrt.RESOURCEGROUP = 'SYS' INNER JOIN AM_PARENTCHILDMAPPER pcm on pcm.PARENTID = pmo.RESOURCEID INNER JOIN AM_ManagedObject cmo ON cmo.RESOURCEID = pcm.CHILDID AND cmo.TYPE in ('Process') order by 1,2