RE_SITE_TYPE_VW

(SQL View)
Index Back

Site Type View

Select the Site Type description based on the current date as effective date.

SELECT A.SETID , A.SITE_TYPE , A.EFFDT , A.EFF_STATUS ,A.INSTANCE_NAME , A.INSTANCE_DESCR FROM PS_RE_SITE_TYPE A WHERE A.EFF_STATUS = 'A' AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_RE_SITE_TYPE B WHERE B.SETID = A.SETID AND B.SITE_TYPE = A.SITE_TYPE AND B.EFFDT <= %CurrentDateIn)

  • Related Language Record: RE_SITETYPVW_LG
  • # 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 SITE_TYPE Character(3) VARCHAR2(3) NOT NULL Site Type
    3 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    4 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive
    5 INSTANCE_NAME Character(60) VARCHAR2(60) NOT NULL Site Type Name
    6 INSTANCE_DESCR Character(150) VARCHAR2(150) NOT NULL Generic Description Field for Instances of Generic Entities