RD_CONSUMER_VW

(SQL View)
Index Back

Consumer View

This View fetches the Consumers.

SELECT A.SETID , A.PERSON_ID , B.FIRST_NAME , B.LAST_NAME , B.NAME_AC , D.CUST_ID , A.TITLE , A.EMPLID , A.MARKET FROM PS_RD_PERSON A , PS_BO_NAME B , PS_BO_ROLE C , PS_BC D WHERE A.BO_ID = B.BO_ID AND A.BO_ID = C.BO_ID AND D.BO_ID = A.BO_ID AND B.PRIMARY_IND = 'Y' AND C.ROLE_TYPE_ID = 9 AND C.ROLE_START_DT <= %CurrentDateIn AND C.ROLE_END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.

Prompt Table: SP_SETID_NONVW

2 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID

Prompt Table: %EDIT_PERSON

3 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
4 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
5 NAME_AC Character(50) VARCHAR2(50) NOT NULL Name (Alternate Character)
6 CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer ID
7 TITLE Character(35) VARCHAR2(35) NOT NULL Title
8 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
9 MARKET Character(3) VARCHAR2(3) NOT NULL Market