Custom PeopleSoft Queries

时间:2021-03-15 20:29:55
 

The following SQL identifies custom queries created in your system from the PSQRYDEFN PeopleTools table. It includes the query type (and the operator ID who owns the query if it is private).

select QRYNAME as "Query Name", DESCR as "Query Description", CREATEOPRID as "Created By", CREATEDTTM as"Created On", LASTUPDDTTM as "Last Updated By", LASTUPDOPRID as "Last Updated On", case when OPRID != ' 'then 'Private - ' || OPRID else 'Public' end as "Query Type", VERSION as "Revisions", QRYAPPROVED as"Query Approved?", APPROVEOPRID as "Approved By", APPROVEDTTM as "Approved On"from PSQRYDEFNwhereLASTUPDOPRID != 'PPLSOFT'

Note to run in SQL server, change the || concatenation operator to a plus sign (+).