Custom PeopleSoft Queries

 

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 (+).

posted @ 2013-10-24 13:45  Bryan chen  阅读(232)  评论(0编辑  收藏  举报