SELECT DISTINCT F.FIELDNAME ,A.SETID_TREE ,A.TREE_NAME_OTBI ,A.TREE_NAME ,A.TREE_EFFDT ,T.DESCR FROM PS_OI_TFLT_FIELDS F ,PSTREESTRCT S ,PSTREEDEFN T ,%Table(OI_TFLT_ACCOUNT) A WHERE (F.FIELDNAME = S.DTL_FIELDNAME OR F.FIELDNAME = S.NODE_FIELDNAME) AND T.TREE_STRCT_ID = S.TREE_STRCT_ID AND T.TREE_NAME = A.TREE_NAME AND T.EFFDT = A.TREE_EFFDT AND T.SETID = A.SETID_TREE UNION SELECT DISTINCT F.FIELDNAME ,A.SETID_TREE ,A.TREE_NAME_OTBI ,A.TREE_NAME ,A.TREE_EFFDT ,T.DESCR FROM PS_OI_TFLT_FIELDS F ,PSTREESTRCT S ,PSTREEDEFN T ,%Table(OI_TFLT_DEPT) A WHERE (F.FIELDNAME = S.DTL_FIELDNAME OR F.FIELDNAME = S.NODE_FIELDNAME) AND T.TREE_STRCT_ID = S.TREE_STRCT_ID AND T.TREE_NAME = A.TREE_NAME AND T.EFFDT = A.TREE_EFFDT AND T.SETID = A.SETID_TREE
|