SELECT DISTINCT BASE_RECORD , FIELDNAME0 , RECNAME , FIELDNAME FROM PS_QRY_SEC_FLD_TBL WHERE EXISTS ( SELECT 'X' FROM PS_INSTALLATION_FS WHERE QSC_SECURITY_TYPE='1' ) UNION SELECT DISTINCT BASE_RECORD ,FIELDNAME0 , RECNAME_2 , FIELDNAME FROM PS_QRY_SEC_FLD_TBL WHERE EXISTS ( SELECT 'X' FROM PS_INSTALLATION_FS WHERE QSC_SECURITY_TYPE='2' ) UNION SELECT DISTINCT BASE_RECORD , FIELDNAME0 , RECNAME_3 , FIELDNAME FROM PS_QRY_SEC_FLD_TBL WHERE EXISTS ( SELECT 'X' FROM PS_INSTALLATION_FS WHERE QSC_SECURITY_TYPE='3' )
|