GM_EC_AWD

(SQL View)
Index Back

GM Award


SELECT C.ECTRANSID , C.RUN_CNTL_ID , C.OPRID , C.ECQUEUEINSTANCE , C.ECTRANSINOUTSW , C.BUSINESS_UNIT , C.CONTRACT_NUM , B.SHIP_TO_CUST_ID , O.NAME1 , A.BEGIN_DT , A.END_DT , K.INSTID , A.REF_AWD_NUMBER , C.BEGIN_DT , C.END_DT , C.CERTIFY_OFFICIAL , H.NAME , C.SUBMISSION_DATE , C.FINAL_REPORT , F.BUSINESS_TITLE , C.COMMENTS FROM PS_GM_AWARD A , PS_CA_DETAIL B , PS_GM_AWD_RUN_CNTL C , PS_CA_DETAIL_PROJ D , PS_EMPLOYMENT F , PS_PERS_DATA_EFFDT H , PS_PROJECT J , PS_GM_PRJ_DEPT K , PS_GM_CUSTOMER_VW O WHERE A.BUSINESS_UNIT=C.BUSINESS_UNIT AND A.CONTRACT_NUM=C.CONTRACT_NUM AND B.CONTRACT_LINE_NUM= C.CONTRACT_LINE_NUM AND B.CONTRACT_NUM = A.CONTRACT_NUM AND F.EMPLID = C.CERTIFY_OFFICIAL AND F.EMPL_RCD =( SELECT MIN(G.EMPL_RCD) FROM PS_EMPLOYMENT G WHERE G.EMPLID = F.EMPLID ) AND H.EMPLID = C.CERTIFY_OFFICIAL AND H.EFFDT = ( SELECT MAX(G.EFFDT) FROM PS_PERS_DATA_EFFDT G WHERE G.EMPLID = H.EMPLID AND G.EFFDT <= %CurrentDateIn) AND O.SETID=( SELECT SETID FROM PS_SET_CNTRL_REC G WHERE G.SETCNTRLVALUE=A.BUSINESS_UNIT AND G.RECNAME='GM_CUSTOMER_VW') AND O.SPONSOR_ID=B.SHIP_TO_CUST_ID AND C.CONTRACT_NUM=D.CONTRACT_NUM AND C.CONTRACT_LINE_NUM=D.CONTRACT_LINE_NUM AND C.BUSINESS_UNIT=D.BUSINESS_UNIT_PC AND J.BUSINESS_UNIT=D.BUSINESS_UNIT_PC AND J.PROJECT_ID=D.PROJECT_ID AND J.GM_PRIMARY_FLAG='Y' AND K.BUSINESS_UNIT=J.BUSINESS_UNIT AND K.PROJECT_ID=J.PROJECT_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 ECTRANSID Character(15) VARCHAR2(15) NOT NULL Electronic Commerce Transaction ID. Used in EDI Manager. One of three(3) Key Fields(ECTRANSID, ECTRANSINOUTSW, ECQUEUEINSTANCE) used in Electronic Commerce(EC) Staging Tables. ECTRANSID in EDI Manager identifies a transaction type(like "PO" for Purchase Orders)
2 RUN_CNTL_ID Character(30) VARCHAR2(30) NOT NULL Run Control ID
3 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
4 ECQUEUEINSTANCE Number(9,0) DECIMAL(9) NOT NULL Electronic Commerce Queue Instance ID. Used in EDI Manager. One of three(3) Key Fields(ECTRANSID, ECTRANSINOUTSW, ECQUEUEINSTANCE) used in Electronic Commerce(EC) Staging Tables.
5 ECTRANSINOUTSW Character(1) VARCHAR2(1) NOT NULL Electronic Commerce Inbound/Outbound Switch. Used in EDI Manager. One of three(3) Key Fields(ECTRANSID, ECTRANSINOUTSW, ECQUEUEINSTANCE) used in Electronic Commerce(EC) Staging Tables. The field value is "I" for Inbound Transactions, and "O" for Outbound.
I=Inbound
O=Outbound
6 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
7 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract
8 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
9 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
10 BEGIN_DT Date(10) DATE Begin Date
11 END_DT Date(10) DATE End Date
12 INSTID Character(5) VARCHAR2(5) NOT NULL Institution ID
13 REF_AWD_NUMBER Character(25) VARCHAR2(25) NOT NULL Reference Award Number
14 FROM_DATE Date(10) DATE From Date
15 TO_DATE Date(10) DATE To Date
16 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
17 NAME Character(50) VARCHAR2(50) NOT NULL Name
18 SUBMISSION_DATE Date(10) DATE Submission Date
19 FINAL_REPORT Character(1) VARCHAR2(1) NOT NULL Final Report Flag
20 BUSINESS_TITLE Character(30) VARCHAR2(30) NOT NULL Business Title
21 COMMENTS Long Character CLOB Comment