SELECT DISTINCT PG.PNLGRPNAME , RF.RECNAME , RF.FIELDNAME , FLL.LANGUAGE_CD , FLL.LONGNAME FROM PSPNLGROUP PG , PSPNLFIELD PF , PSRECFIELDALL RF , PSDBFLDLABL FL , PSDBFLDLABLLANG FLL WHERE ( PF.PNLNAME = PG.PNLNAME OR PF.PNLNAME IN ( SELECT PF1.SUBPNLNAME FROM PSPNLGROUP PG1 , PSPNLFIELD PF1 WHERE PG1.PNLGRPNAME = PG.PNLGRPNAME AND PF1.PNLNAME = PG1.PNLNAME AND PF1.SUBPNLNAME <> ' ' ) ) AND PF.ASSOCFIELDNUM = 0 AND PF.RECNAME <> ' ' AND PF.FIELDNUM = ( SELECT MIN(PF1.FIELDNUM) FROM PSPNLFIELD PF1 WHERE PF1.PNLNAME = PF.PNLNAME AND PF1.RECNAME = PF.RECNAME ) AND RF.RECNAME = PF.RECNAME AND FL.FIELDNAME = RF.FIELDNAME AND FL.DEFAULT_LABEL = 1 AND FLL.FIELDNAME = FL.FIELDNAME AND FLL.LABEL_ID = FL.LABEL_ID
|