CUSTV_DBRAT_VW(SQL View) |
Index Back |
---|---|
Customer D+B Rating |
SELECT C.SETID , C.CUST_ID , A.DB_RATING FROM %Table(cust_db) A , %Table(CUSTOMER) C WHERE C.SETID = A.SETID AND A.db_product = 'CRSC' AND A.effdt = ( SELECT MAX(DS.effdt) FROM %Table(cust_db) DS WHERE DS.setid = A.setid AND DS.db_product = A.db_product AND DS.effdt <= %CurrentDateIn AND DS.eff_status='A') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Prompt Table: SP_SETID_NONVW |
2 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. |
3 | DB_RATING | Character(3) | VARCHAR2(3) NOT NULL | D+B Rating |