SFA_CRC_REL_VW

(SQL View)
Index Back

Relationship Data View

Use RELATIONSHIP_VW for prompting on RELATIONSHIP_NBR from table RELATIONSHIPS with maximum effective date and is active.

SELECT A.EMPLID ,A.RELATIONSHIP_NBR ,A.PEOPLE_RELATION ,A.GUARDIAN_RELATIONS ,A.NAME ,A.ADDRESS1 ,A.EMPLID_RELATED ,A.ADDRESS2 ,A.CITY ,A.STATE ,A.POSTAL ,A.PHONE_DAY ,A.PHONE_EVE ,A.PHONE_FAX ,A.CITIZENSHIP_STATUS FROM PS_RELATIONSHIPS A WHERE A.EFFDT = ( SELECT MAX(X.EFFDT) FROM PS_RELATIONSHIPS X WHERE X.EMPLID = A.EMPLID AND X.RELATIONSHIP_NBR = A.RELATIONSHIP_NBR AND X.EFFDT <= %CurrentDateIn ) AND A.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Prompt Table: PEOPLE_SRCH

2 RELATIONSHIP_NBR Number(2,0) SMALLINT NOT NULL Relationship Nbr
3 PEOPLE_RELATION Character(2) VARCHAR2(2) NOT NULL Relationship
4 GUARDIAN_RELATIONS Character(2) VARCHAR2(2) NOT NULL Guardian Relationship
LG=Legal Guardian
NA=Not Applicable
OT=Other
PG=Parent Guardian
SG=Self Guardian
XG=Primary Guardian
5 NAME Character(50) VARCHAR2(50) NOT NULL Name
6 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
7 EMPLID_RELATED Character(11) VARCHAR2(11) NOT NULL Related People ID

Prompt Table: PEOPLE_SRCH

8 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
9 CITY Character(30) VARCHAR2(30) NOT NULL City
10 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: STATE_TBL

11 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
12 PHONE_DAY Character(30) VARCHAR2(30) NOT NULL Daytime Telephone
13 PHONE_EVE Character(30) VARCHAR2(30) NOT NULL Evening Telephone
14 PHONE_FAX Character(30) VARCHAR2(30) NOT NULL Fax Nbr
15 CITIZENSHIP_STATUS Character(1) VARCHAR2(1) NOT NULL Citizenship Status

Prompt Table: HCR_CTZN_STS_I
Set Control Field: CITIZEN_COUNTRY