RG_PRDGRP_DF_VW

(SQL View)
Index Back

Product Group to Product View

This view links Products to a particular Product Group.

SELECT DISTINCT A.SETID , A.PRODUCT_GROUP , C.PRODUCT_ID , C.DESCR FROM PS_PROD_GROUP_TBL A , PS_PROD_PGRP_LNK B , PS_PROD_ITEM C WHERE B.SETID = A.SETID AND B.PROD_GRP_TYPE = A.PROD_GRP_TYPE AND B.PRODUCT_GROUP = A.PRODUCT_GROUP AND C.SETID = B.SETID AND C.PRODUCT_ID = B.PRODUCT_ID AND A.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_PROD_GROUP_TBL D WHERE D.SETID = A.SETID AND D.PROD_GRP_TYPE = A.PROD_GRP_TYPE AND D.PRODUCT_GROUP = A.PRODUCT_GROUP AND D.EFFDT <= %CurrentDateIn) AND A.EFF_STATUS = 'A'

  • Related Language Record: RG_PRDGRPDF_LVW
  • # 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.
    2 PRODUCT_GROUP Character(10) VARCHAR2(10) NOT NULL PRoduct Group
    3 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
    4 DESCR Character(30) VARCHAR2(30) NOT NULL Description