GM_STATE_CTRY_V(SQL View) |
Index Back |
---|---|
To get state/country FormatThis view is created to get the state and country fields. Also the view returns the formated value of state and country for SF424RR forms. |
SELECT A.STATE , B.COUNTRY , A.DESCR , B.DESCR , %TrimSubstr(A.STATE, 1, 6) %Concat ': ' %Concat A.DESCR , %Upper(%TrimSubstr(B.COUNTRY, 1, 3) %Concat ': ' %Concat B.DESCR ) FROM PS_STATE_TBL A , PS_COUNTRY_TBL B WHERE A.COUNTRY = B.COUNTRY |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
2 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
4 | DESCR_2 | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | STATE_FORMAT | Character(40) | VARCHAR2(40) NOT NULL | STATE FORMAT |
6 | COUNTRY_FORMAT | Character(40) | VARCHAR2(40) NOT NULL | COUNTRY FORMAT |