ST_BRKR_PRCH_VW

(SQL View)
Index Back

Captive Broker for Options

Prompt View for %RecName_Edit

SELECT DISTINCT A.STOCK_ID ,A.ST_BROKERAGE_ID ,B.DESCR FROM PS_STOCK_BRNCH_DTL A , PS_ST_BROKER_DTL B WHERE A.ST_BROKERAGE_ID = B.ST_BROKERAGE_ID AND A.EFFDT = ( SELECT MAX(AA.EFFDT) FROM PS_STOCK_BRNCH_DTL AA WHERE AA.STOCK_ID = A.STOCK_ID AND AA.ST_BROKERAGE_ID = A.ST_BROKERAGE_ID AND AA.ST_BRANCH_ID = A.ST_BRANCH_ID AND AA.EFFDT <= %CurrentDateIn) AND A.EFF_STATUS = 'A' AND A.CAPTIVE_ESPP = 'Y' AND B.EFFDT = ( SELECT MAX(BB.EFFDT) FROM PS_ST_BROKER_DTL BB WHERE BB.ST_BROKERAGE_ID = B.ST_BROKERAGE_ID AND BB.EFFDT <= %CurrentDateIn) AND B.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 STOCK_ID Character(10) VARCHAR2(10) NOT NULL Stock ID
2 ST_BROKERAGE_ID Character(10) VARCHAR2(10) NOT NULL Brokerage ID
3 DESCR Character(30) VARCHAR2(30) NOT NULL Description