SELECT DISTINCT A.FIELDNAME , A.LONGNAME , C.PROMPT_TBL , C.PROMPT_TBL2 , C.PROMPT_TBL3 FROM PS_FS_FLD_PROMPT C , PSDBFLDLABL A , PS_FS_CF_TEMPLATE B WHERE A.FIELDNAME = B.FIELDNAME AND A.DEFAULT_LABEL = 1 AND (B.CF_TYPE = 'F' OR A.FIELDNAME IN ('DEPTID', 'PROJECT_ID')) AND B.CF_ACTIVE_STATUS = 'A' AND C.FIELDNAME = A.FIELDNAME UNION SELECT DISTINCT A.FIELDNAME , A.LONGNAME , C.PROMPT_TBL , C.PROMPT_TBL2 , C.PROMPT_TBL3 FROM PS_FS_FLD_PROMPT C , PSDBFLDLABL A WHERE A.FIELDNAME = C.FIELDNAME AND A.FIELDNAME = 'CATEGORY' AND A.DEFAULT_LABEL = 1
|