CS_CLAS_RDTLVW

(SQL View)
Index Back

Clause By Reference

Clause By Reference

SELECT A.SETID , A.CS_OBJECT_TYPE , B.CS_OBJECT_ID , A.DESCR60 , B.CS_TITLE , C.CS_BODY_TYPE , C.CS_BODY FROM PS_CS_OBJECTS_HDR A , PS_CS_OBJECTS_DTL B , PS_CS_OBJECT_TEXT C WHERE A.SETID = B.SETID AND A.SETID = C.SETID AND A.CS_OBJECT_TYPE = B.CS_OBJECT_TYPE AND A.CS_OBJECT_TYPE = C.CS_OBJECT_TYPE AND A.CS_OBJECT_ID = B.CS_OBJECT_ID AND A.CS_OBJECT_ID = C.CS_OBJECT_ID AND B.CS_APPROVAL_STATUS = 'A' AND B.EFF_STATUS = 'A' AND B.EFFDT IN ( SELECT MAX(EFFDT) FROM PS_CS_OBJECTS_DTL D WHERE D.SETID = B.SETID AND D.CS_OBJECT_TYPE = B.CS_OBJECT_TYPE AND D.CS_OBJECT_ID = B.CS_OBJECT_ID AND D.EFF_STATUS = 'A' AND D.EFFDT <= %CurrentDateIn) AND B.EFFDT = C.EFFDT AND A.CS_OBJECT_TYPE = '0001' AND C.CS_BODY_TYPE = 'R'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CS_OBJECT_TYPE Character(4) VARCHAR2(4) NOT NULL 06/08/09 F-AHAYT-XOES6 Add capability to use binds in headers and/or footers of contract document; new translate value added to support Where Used from Document Templates and Styles
0001=Clause
0002=Section
0003=Ad Hoc Clause
0004=Rule
0005=Bind Variables
0006=Wizard Definition
0007=Document Configurator
0008=Document
0015=Word Template
1000=All
3 CS_OBJECT_ID Character(20) VARCHAR2(20) NOT NULL Object id -- clause, section
4 DESCR60 Character(60) VARCHAR2(60) NOT NULL Description
5 CS_TITLE Character(254) VARCHAR2(254) NOT NULL title
6 CS_BODY_TYPE Character(1) VARCHAR2(1) NOT NULL indicates body type -- full or by ref for clause/section
F=Full Text
R=By Reference Text
7 CS_BODY Long Character CLOB stores the body text for clause/section.