TD_ALW_PGLT_VW(SQL View) |
Index Back |
---|---|
customer promotions by custome |
SELECT DISTINCT A.SETID , A.PPRC_PROMO_CD , B.OPRID , A.PROMO_TYPE , A.DESCR , A.DESCRSHORT , A.ALLOW_STATUS , A.STATUS_TD , A.PROMO_PERIOD , A.FIRST_ORDER_DATE , A.LAST_ORDER_DATE , A.FIRST_SHIP_DATE , A.LAST_SHIP_DATE , A.FIRST_DELIVERY_DT , A.LAST_DELIVERY_DT , A.FIRST_PERFORM_DT , A.LAST_PERFORM_DT , A.OPRID_ENTERED_BY , A.OPRID_MODIFIED_BY , A.ENTERED_DT , A.CONTACT_ID , A.TD_TREE_ID_CUST FROM PS_PPRC_PROMO_TBL A , PS_TD_ALLOWANCE_VW B WHERE A.SETID = B.SETID AND A.PPRC_PROMO_CD = B.PPRC_PROMO_CD AND A.PROMO_TYPE = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Prompt Table: SP_SETID_NONVW |
|
2 | Character(20) | VARCHAR2(20) NOT NULL | Price Promotion Code | |
3 | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). | |
4 | PROMO_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Promotion Type
A=National Allowance P=Promotion Event |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
6 | DESCRSHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Description |
7 | ALLOW_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Allowance Status
1=Planned 2=Released 3=Pending Approval 4=Approved 5=Rejected 6=Closed 7=Recalled |
8 | STATUS_TD | Character(2) | VARCHAR2(2) NOT NULL |
Promotion Status
CA=Customer Approved CE=Customer Cancelled CL=Closed CR=Customer Rejected MA=Management Approved MR=Management Rejected PA=Pending Approval PL=Planned RE=Recalled RL=Released |
9 | PROMO_PERIOD | Character(10) | VARCHAR2(10) NOT NULL | Promotion Period |
10 | FIRST_ORDER_DATE | Date(10) | DATE | First Order Date |
11 | LAST_ORDER_DATE | Date(10) | DATE | Last Order Date |
12 | FIRST_SHIP_DATE | Date(10) | DATE | First Scheduled Ship Date |
13 | LAST_SHIP_DATE | Date(10) | DATE | Last Scheduled Ship Date |
14 | FIRST_DELIVERY_DT | Date(10) | DATE | Physical date of position. |
15 | LAST_DELIVERY_DT | Date(10) | DATE | Last delivery date for a contract . |
16 | FIRST_PERFORM_DT | Date(10) | DATE | First Peformance Date |
17 | LAST_PERFORM_DT | Date(10) | DATE | Last Performance Date |
18 | OPRID_ENTERED_BY | Character(30) | VARCHAR2(30) NOT NULL | Entered By 07/25/2011 MRAD 12383033 :Ensured that OPRID_ENTERED_BY is set with format type of MixedCase. 03/22/2013 GL 16482301: Switched OPRID_ENTERED_BY back to MixedCase again. Please don't change it to UpperCase!!! FYI - The alternatives to use a User ID as uppercase: 1) Create your own User ID, add comments in the Field Properties, and fill out the Owner ID 2) Use %Upper meta-SQL in SQL statements 3) Use Upper function in peoplecodes |
19 | OPRID_MODIFIED_BY | Character(30) | VARCHAR2(30) NOT NULL | Last User to Modify Entered By 07/25/2011:Ensured that OPRID_MODIFIED_BY is set with format type of MixedCase. |
20 | ENTERED_DT | Date(10) | DATE | Entered on |
21 | CONTACT_ID | Character(15) | VARCHAR2(15) NOT NULL | Contact Identifier for Treasury Contacts |
22 | TD_TREE_ID_CUST | Character(8) | VARCHAR2(8) NOT NULL | Customer Tree ID |