Vous êtes sur la page 1sur 97

CREATE TABLE TBLMG_ACCT_CCY_HAIRCUTS (

FIRM CHAR(4) NOT NULL,


BRBASE CHAR(9) NOT NULL,
CCY CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
CASH_TYPE CHAR(1) NOT NULL,
MARGIN_TYPE CHAR(1) NOT NULL,
SHORT_TYPE CHAR(1) NOT NULL,
HAIRCUT_PCT NUMBER(3,0) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_AWAYTRADES (
FIRM CHAR(4) NOT NULL,
ENTRY_DATE CHAR(8) NOT NULL,
REFERENCE_NUMBER CHAR(8) NOT NULL,
REFERENCE_SUFFIX CHAR(1) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SCENARIO_ID NUMBER(22,0) NOT NULL,
CUSIP CHAR(12) NOT NULL,
ACCOUNT CHAR(10) NOT NULL,
NET_CURRENCY CHAR(3) NOT NULL,
NET2_CURRENCY CHAR(3) NOT NULL,
REGISTERED_REP CHAR(4) NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
PREFIG_PRINC CHAR(1) NOT NULL,
PREFIG_INT CHAR(1) NOT NULL,
PREFIG_COMM CHAR(1) NOT NULL,
PREFIG_FEE CHAR(1) NOT NULL,
ISSUE_TYPE CHAR(4) NOT NULL,
TRADE_DATE CHAR(8) NOT NULL,
SETTLEMENT_DATE CHAR(8) NOT NULL,
RUN_DATE CHAR(8) NOT NULL,
CLIENT_TRANS CHAR(4) NOT NULL,
TRANSACTION_CODE CHAR(3) NOT NULL,
MARKET CHAR(1) NOT NULL,
BLOTTER CHAR(1) NOT NULL,
MEMO_LOCATION CHAR(3) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
ALPHA_PRICE CHAR(12) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
QUANTITY NUMBER(17,4) NOT NULL,
PRINCIPAL NUMBER(17,2) NOT NULL,
INTEREST NUMBER(17,2) NOT NULL,
COMMISSION NUMBER(17,2) NOT NULL,
NET_AMOUNT NUMBER(17,2) NOT NULL,
RR_CREDIT NUMBER(17,2) NOT NULL,
NET2_AMOUNT NUMBER(17,2) NOT NULL,
NUMBER_SM_LINES NUMBER(1,0) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
DESCRIPTION5 CHAR(30) NOT NULL,
DESCRIPTION6 CHAR(30) NOT NULL,
DESCRIPTION7 CHAR(30) NOT NULL,
DESCRIPTION8 CHAR(30) NOT NULL,
DESCRIPTION9 CHAR(30) NOT NULL,
FUND CHAR(3) NOT NULL,
OPTION_OPEN_CLOSE CHAR(1) NOT NULL,
OFFICE CHAR(3) NOT NULL,
ALPHA_CODE CHAR(4) NOT NULL,
REINVEST CHAR(1) NOT NULL,
ALT_SEQUENCE NUMBER(5,0) NOT NULL,
UNDER_COUNTRY CHAR(2) NOT NULL,
DELIVERY_INSTRUCTION CHAR(1) NOT NULL,
OFFSET_ACCOUNT CHAR(10) NOT NULL,
OFFSET_SHORTNAME CHAR(15) NOT NULL,
DEBIT_CREDIT CHAR(2) NOT NULL,
PAYMENT_METHOD CHAR(2) NOT NULL,
COMBINED_CODE CHAR(1) NOT NULL,
COMBINED_ACCOUNT CHAR(10) NOT NULL,
SEC_FEE NUMBER(17,2) NOT NULL,
SERVICE_CHARGE NUMBER(17,2) NOT NULL,
SALES_TAX NUMBER(17,2) NOT NULL,
POSTAGE NUMBER(17,2) NOT NULL,
NEW_YORK_STATE_TAX NUMBER(17,2) NOT NULL,
CENTS_PER_SHARE NUMBER(5,4) NOT NULL,
DISCOUNT_PERCENT NUMBER(5,3) NOT NULL,
DETAIL_RR CHAR(4) NOT NULL,
COMPLIANCE CHAR(1) NOT NULL,
BLOCK CHAR(1) NOT NULL,
LAST_LINE CHAR(1) NOT NULL,
SYMBOL CHAR(12) NOT NULL,
BATCH CHAR(6) NOT NULL,
COMMISSION_SCHEDULE CHAR(2) NOT NULL,
BASIS CHAR(1) NOT NULL,
CONCESSION NUMBER(17,2) NOT NULL,
ORIGINAL_REFERENCE CHAR(15) NOT NULL,
MAJOR_EXECUTING_BADGE CHAR(5) NOT NULL,
MINOR_EXECUTING_BADGE CHAR(5) NOT NULL,
TIME_OF_EXECUTION CHAR(4) NOT NULL,
NO_NAME CHAR(1) NOT NULL,
REBILL CHAR(1) NOT NULL,
ODD_LOT CHAR(1) NOT NULL,
STOCK_BOND_OPTION CHAR(1) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
CONV NUMBER(17,2) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_BK (
FIRM CHAR(4) NOT NULL,
ENTRY_DATE CHAR(8) NOT NULL,
REFERENCE_NUMBER CHAR(8) NOT NULL,
REFERENCE_SUFFIX CHAR(1) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SCENARIO_ID NUMBER(22,0) NOT NULL,
CUSIP CHAR(12) NOT NULL,
ACCOUNT CHAR(10) NOT NULL,
NET_CURRENCY CHAR(3) NOT NULL,
NET2_CURRENCY CHAR(3) NOT NULL,
REGISTERED_REP CHAR(4) NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
PREFIG_PRINC CHAR(1) NOT NULL,
PREFIG_INT CHAR(1) NOT NULL,
PREFIG_COMM CHAR(1) NOT NULL,
PREFIG_FEE CHAR(1) NOT NULL,
ISSUE_TYPE CHAR(4) NOT NULL,
TRADE_DATE CHAR(8) NOT NULL,
SETTLEMENT_DATE CHAR(8) NOT NULL,
RUN_DATE CHAR(8) NOT NULL,
CLIENT_TRANS CHAR(4) NOT NULL,
TRANSACTION_CODE CHAR(3) NOT NULL,
MARKET CHAR(1) NOT NULL,
BLOTTER CHAR(1) NOT NULL,
MEMO_LOCATION CHAR(3) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
ALPHA_PRICE CHAR(12) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
QUANTITY NUMBER(17,4) NOT NULL,
PRINCIPAL NUMBER(17,2) NOT NULL,
INTEREST NUMBER(17,2) NOT NULL,
COMMISSION NUMBER(17,2) NOT NULL,
NET_AMOUNT NUMBER(17,2) NOT NULL,
RR_CREDIT NUMBER(17,2) NOT NULL,
NET2_AMOUNT NUMBER(17,2) NOT NULL,
NUMBER_SM_LINES NUMBER(1,0) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
DESCRIPTION5 CHAR(30) NOT NULL,
DESCRIPTION6 CHAR(30) NOT NULL,
DESCRIPTION7 CHAR(30) NOT NULL,
DESCRIPTION8 CHAR(30) NOT NULL,
DESCRIPTION9 CHAR(30) NOT NULL,
FUND CHAR(3) NOT NULL,
OPTION_OPEN_CLOSE CHAR(1) NOT NULL,
OFFICE CHAR(3) NOT NULL,
ALPHA_CODE CHAR(4) NOT NULL,
REINVEST CHAR(1) NOT NULL,
ALT_SEQUENCE NUMBER(5,0) NOT NULL,
UNDER_COUNTRY CHAR(2) NOT NULL,
DELIVERY_INSTRUCTION CHAR(1) NOT NULL,
OFFSET_ACCOUNT CHAR(10) NOT NULL,
OFFSET_SHORTNAME CHAR(15) NOT NULL,
DEBIT_CREDIT CHAR(2) NOT NULL,
PAYMENT_METHOD CHAR(2) NOT NULL,
COMBINED_CODE CHAR(1) NOT NULL,
COMBINED_ACCOUNT CHAR(10) NOT NULL,
SEC_FEE NUMBER(17,2) NOT NULL,
SERVICE_CHARGE NUMBER(17,2) NOT NULL,
SALES_TAX NUMBER(17,2) NOT NULL,
POSTAGE NUMBER(17,2) NOT NULL,
NEW_YORK_STATE_TAX NUMBER(17,2) NOT NULL,
CENTS_PER_SHARE NUMBER(5,4) NOT NULL,
DISCOUNT_PERCENT NUMBER(5,3) NOT NULL,
DETAIL_RR CHAR(4) NOT NULL,
COMPLIANCE CHAR(1) NOT NULL,
BLOCK CHAR(1) NOT NULL,
LAST_LINE CHAR(1) NOT NULL,
SYMBOL CHAR(12) NOT NULL,
BATCH CHAR(6) NOT NULL,
COMMISSION_SCHEDULE CHAR(2) NOT NULL,
BASIS CHAR(1) NOT NULL,
CONCESSION NUMBER(17,2) NOT NULL,
ORIGINAL_REFERENCE CHAR(15) NOT NULL,
MAJOR_EXECUTING_BADGE CHAR(5) NOT NULL,
MINOR_EXECUTING_BADGE CHAR(5) NOT NULL,
TIME_OF_EXECUTION CHAR(4) NOT NULL,
NO_NAME CHAR(1) NOT NULL,
REBILL CHAR(1) NOT NULL,
ODD_LOT CHAR(1) NOT NULL,
STOCK_BOND_OPTION CHAR(1) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
CONV NUMBER(17,2) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_BK_CONVERSION (
FIRM CHAR(4) NOT NULL,
ENTRY_DATE CHAR(8) NOT NULL,
REFERENCE_NUMBER CHAR(8) NOT NULL,
REFERENCE_SUFFIX CHAR(1) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SCENARIO_ID NUMBER(22,0) NOT NULL,
CUSIP CHAR(12) NOT NULL,
ACCOUNT CHAR(10) NOT NULL,
NET_CURRENCY CHAR(3) NOT NULL,
NET2_CURRENCY CHAR(3) NOT NULL,
REGISTERED_REP CHAR(4) NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
PREFIG_PRINC CHAR(1) NOT NULL,
PREFIG_INT CHAR(1) NOT NULL,
PREFIG_COMM CHAR(1) NOT NULL,
PREFIG_FEE CHAR(1) NOT NULL,
ISSUE_TYPE CHAR(4) NOT NULL,
TRADE_DATE CHAR(8) NOT NULL,
SETTLEMENT_DATE CHAR(8) NOT NULL,
RUN_DATE CHAR(8) NOT NULL,
CLIENT_TRANS CHAR(4) NOT NULL,
TRANSACTION_CODE CHAR(3) NOT NULL,
MARKET CHAR(1) NOT NULL,
BLOTTER CHAR(1) NOT NULL,
MEMO_LOCATION CHAR(3) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
ALPHA_PRICE CHAR(12) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
QUANTITY NUMBER(17,4) NOT NULL,
PRINCIPAL NUMBER(17,2) NOT NULL,
INTEREST NUMBER(17,2) NOT NULL,
COMMISSION NUMBER(17,2) NOT NULL,
NET_AMOUNT NUMBER(17,2) NOT NULL,
RR_CREDIT NUMBER(17,2) NOT NULL,
NET2_AMOUNT NUMBER(17,2) NOT NULL,
NUMBER_SM_LINES NUMBER(1,0) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
DESCRIPTION5 CHAR(30) NOT NULL,
DESCRIPTION6 CHAR(30) NOT NULL,
DESCRIPTION7 CHAR(30) NOT NULL,
DESCRIPTION8 CHAR(30) NOT NULL,
DESCRIPTION9 CHAR(30) NOT NULL,
FUND CHAR(3) NOT NULL,
OPTION_OPEN_CLOSE CHAR(1) NOT NULL,
OFFICE CHAR(3) NOT NULL,
ALPHA_CODE CHAR(4) NOT NULL,
REINVEST CHAR(1) NOT NULL,
ALT_SEQUENCE NUMBER(5,0) NOT NULL,
UNDER_COUNTRY CHAR(2) NOT NULL,
DELIVERY_INSTRUCTION CHAR(1) NOT NULL,
OFFSET_ACCOUNT CHAR(10) NOT NULL,
OFFSET_SHORTNAME CHAR(15) NOT NULL,
DEBIT_CREDIT CHAR(2) NOT NULL,
PAYMENT_METHOD CHAR(2) NOT NULL,
COMBINED_CODE CHAR(1) NOT NULL,
COMBINED_ACCOUNT CHAR(10) NOT NULL,
SEC_FEE NUMBER(17,2) NOT NULL,
SERVICE_CHARGE NUMBER(17,2) NOT NULL,
SALES_TAX NUMBER(17,2) NOT NULL,
POSTAGE NUMBER(17,2) NOT NULL,
NEW_YORK_STATE_TAX NUMBER(17,2) NOT NULL,
CENTS_PER_SHARE NUMBER(5,4) NOT NULL,
DISCOUNT_PERCENT NUMBER(5,3) NOT NULL,
DETAIL_RR CHAR(4) NOT NULL,
COMPLIANCE CHAR(1) NOT NULL,
BLOCK CHAR(1) NOT NULL,
LAST_LINE CHAR(1) NOT NULL,
SYMBOL CHAR(12) NOT NULL,
BATCH CHAR(6) NOT NULL,
COMMISSION_SCHEDULE CHAR(2) NOT NULL,
BASIS CHAR(1) NOT NULL,
CONCESSION NUMBER(17,2) NOT NULL,
ORIGINAL_REFERENCE CHAR(15) NOT NULL,
MAJOR_EXECUTING_BADGE CHAR(5) NOT NULL,
MINOR_EXECUTING_BADGE CHAR(5) NOT NULL,
TIME_OF_EXECUTION CHAR(4) NOT NULL,
NO_NAME CHAR(1) NOT NULL,
REBILL CHAR(1) NOT NULL,
ODD_LOT CHAR(1) NOT NULL,
STOCK_BOND_OPTION CHAR(1) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
CONV NUMBER(17,2) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_BK_HISTORY (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
ENTRY_DATE CHAR(8) NOT NULL,
CUSIP CHAR(12) NOT NULL,
TYPE CHAR(1) NOT NULL,
REFERENCE_NUMBER CHAR(8) NOT NULL,
REFERENCE_SUFFIX CHAR(1) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
REGISTERED_REP CHAR(4) NOT NULL,
TRADE_DATE CHAR(8) NOT NULL,
SETTLEMENT_DATE CHAR(8) NOT NULL,
RUN_DATE CHAR(8) NOT NULL,
TRANSACTION_CODE CHAR(3) NOT NULL,
DEBIT_CREDIT CHAR(2) NOT NULL,
QUANTITY NUMBER(17,4) NOT NULL,
SYMBOL CHAR(12) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
PRINCIPAL NUMBER(17,2) NOT NULL,
INTEREST NUMBER(17,2) NOT NULL,
COMMISSION NUMBER(17,2) NOT NULL,
NET_AMOUNT NUMBER(17,2) NOT NULL,
NET2_AMOUNT NUMBER(17,2) NOT NULL,
NET_CURRENCY CHAR(3) NOT NULL,
NET2_CURRENCY CHAR(3) NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
MARKET CHAR(1) NOT NULL,
BLOTTER CHAR(1) NOT NULL,
NUMBER_SM_LINES NUMBER(1,0) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
DESCRIPTION5 CHAR(30) NOT NULL,
DESCRIPTION6 CHAR(30) NOT NULL,
DESCRIPTION7 CHAR(30) NOT NULL,
DESCRIPTION8 CHAR(30) NOT NULL,
DESCRIPTION9 CHAR(30) NOT NULL,
OFFSET_ACCOUNT CHAR(10) NOT NULL,
OFFSET_SHORTNAME CHAR(15) NOT NULL,
COMBINED_CODE CHAR(1) NOT NULL,
COMBINED_ACCOUNT CHAR(10) NOT NULL,
LAST_LINE CHAR(1) NOT NULL,
BATCH CHAR(6) NOT NULL,
ORIGINAL_REFERENCE CHAR(15) NOT NULL,
REBILL CHAR(1) NOT NULL,
STOCK_BOND_OPTION CHAR(1) NOT NULL,
MAJOR_EXECUTING_BADGE CHAR(5) NOT NULL
)
GO
CREATE TABLE TBLMG_BONDS_NOT_RCONV (
FIRM CHAR(4) NOT NULL,
CUSIP CHAR(12) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_COMBINED_ACCOUNTS (
FIRM CHAR(4) NOT NULL,
FROMBRBASE CHAR(9) NOT NULL,
TOBRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
COMBINEDBRBASE CHAR(9) NOT NULL,
NAME CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_CONCERT_ACCOUNTS (
FIRM CHAR(4) NOT NULL,
FROMBRBASE CHAR(9) NOT NULL,
TOBRBASE CHAR(9) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_COUNTRY_CODES (
COUNTRY_CODE CHAR(2) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
DESCRIPTION CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_DBX_FX_REQTS (
BRBASE CHAR(9) NOT NULL,
CCY CHAR(3) NOT NULL,
FX_REQT NUMBER(17,2) NOT NULL
)
GO
CREATE TABLE TBLMG_DBX_FX_REQTS_M2 (
BRBASE CHAR(9) NOT NULL,
CCY CHAR(3) NOT NULL,
FX_REQT NUMBER(17,2) NOT NULL
)
GO
CREATE TABLE TBLMG_EFFECTIVE_STRIKE_INPUT (
FIRM CHAR(4) NOT NULL,
SYMBOL CHAR(12) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
CUSIP_1 CHAR(12) NOT NULL,
DESC_1 CHAR(30) NOT NULL,
QTY_1 NUMBER(13,4) NOT NULL,
PRICE_1 NUMBER(13,5) NOT NULL,
CUSIP_2 CHAR(12) NOT NULL,
DESC_2 CHAR(30) NOT NULL,
QTY_2 NUMBER(13,4) NOT NULL,
PRICE_2 NUMBER(13,5) NOT NULL,
CUSIP_3 CHAR(12) NOT NULL,
DESC_3 CHAR(30) NOT NULL,
QTY_3 NUMBER(13,4) NOT NULL,
PRICE_3 NUMBER(13,5) NOT NULL,
CUSIP_4 CHAR(12) NOT NULL,
DESC_4 CHAR(30) NOT NULL,
QTY_4 NUMBER(13,4) NOT NULL,
PRICE_4 NUMBER(13,5) NOT NULL,
CUSIP_5 CHAR(12) NOT NULL,
DESC_5 CHAR(30) NOT NULL,
QTY_5 NUMBER(13,4) NOT NULL,
PRICE_5 NUMBER(13,5) NOT NULL,
CASH_IN_LIEU NUMBER(17,5) NOT NULL,
SECNO CHAR(7) NOT NULL,
UNDER_CUSIP CHAR(12) NOT NULL,
STRIKE_PRICE NUMBER(13,5) NOT NULL,
CONTRACT_QTY NUMBER(16,8) NOT NULL,
EXPIRATION_DATE CHAR(8) NOT NULL,
OPTION_CUSIP CHAR(12) NOT NULL,
EFFECTIVE_STRIKE NUMBER(13,5) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_FILE_TABLE (
JOB CHAR(10) NOT NULL,
STEP CHAR(10) NOT NULL,
LOGICAL CHAR(20) NOT NULL,
PHYSICAL CHAR(64) NOT NULL,
DESCRIPTION CHAR(21) NOT NULL,
USERID CHAR(10) NOT NULL,
LCDLCT DATE NOT NULL
)
GO
CREATE TABLE TBLMG_FILE_TABLE_20081114 (
JOB CHAR(10) NOT NULL,
STEP CHAR(10) NOT NULL,
LOGICAL CHAR(20) NOT NULL,
PHYSICAL CHAR(64) NOT NULL,
DESCRIPTION CHAR(21) NOT NULL,
USERID CHAR(10) NOT NULL,
LCDLCT DATE NOT NULL
)
GO
CREATE TABLE TBLMG_FIRM_NAMES (
FIRM_CODE CHAR(4) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
FIRM_NAME CHAR(50) NOT NULL,
DEFAULT_FLAG CHAR(1) NOT NULL,
DEFAULT_OUTPUT_CCY CHAR(3) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_FLEX_REQUIREMENTS (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
CUSIP CHAR(12) NOT NULL,
LS CHAR(1) NOT NULL,
PRICE_FROM NUMBER(25,7) NOT NULL,
PRICE_TO NUMBER(15,7) NOT NULL,
QUANTITY_FROM NUMBER(17,4) NOT NULL,
QUANTITY_TO NUMBER(17,4) NOT NULL,
CUSIP2 CHAR(12) NOT NULL,
CNTRY_OF_ISSUE CHAR(3) NOT NULL,
EFFECTIVE_DATE_FROM DATE NOT NULL,
EFFECTIVE_DATE_TO DATE NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PRICE_CURRENCY CHAR(3) NOT NULL,
SHORTNAME CHAR(20) NOT NULL,
EXP_DATE DATE NOT NULL,
MARGINABLE CHAR(1) NOT NULL,
OPTION_PERCENT_TYPE CHAR(1) NOT NULL,
HSE_TO_EXCHANGE CHAR(1) NOT NULL,
FED_TO_EXCHANGE CHAR(1) NOT NULL,
SECNO CHAR(12) NOT NULL,
BOND_RATINGS_CATEGORY CHAR(11) NOT NULL,
HOUSE_PERCENT NUMBER(9,6) NOT NULL,
NYSE_PERCENT NUMBER(9,6) NOT NULL,
FED_PERCENT NUMBER(9,6) NOT NULL,
HOUSE_MIN_PERCENT NUMBER(9,6) NOT NULL,
NYSE_MIN_PERCENT NUMBER(9,6) NOT NULL,
FED_MIN_PERCENT NUMBER(9,6) NOT NULL,
HOUSE_PRINC_PERCENT NUMBER(9,6) NOT NULL,
NYSE_PRINC_PERCENT NUMBER(9,6) NOT NULL,
FED_PRINC_PERCENT NUMBER(9,6) NOT NULL,
CONC_PERCENT NUMBER(9,6) NOT NULL,
HAIRCUT_PERCENT NUMBER(9,6) NOT NULL,
DOLLAR_PER_SHARE NUMBER(15,7) NOT NULL,
COMMENT_LINE CHAR(30) NOT NULL,
APPROVAL1 CHAR(10) NOT NULL,
APPROVAL2 CHAR(10) NOT NULL,
PERCENT_OF_SHARES NUMBER(9,6) NOT NULL,
PREV_FED_PCT NUMBER(9,6) NOT NULL,
NYSE_NO_MGN CHAR(1) NOT NULL,
RESTRICTED CHAR(1) NOT NULL,
BRBASE_INDICATOR CHAR(1) NOT NULL,
CUSIP_INDICATOR CHAR(1) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_FLEX_REQUIREMENTS_JD (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
CUSIP CHAR(12) NOT NULL,
LS CHAR(1) NOT NULL,
PRICE_FROM NUMBER(15,7) NOT NULL,
PRICE_TO NUMBER(15,7) NOT NULL,
QUANTITY_FROM NUMBER(17,4) NOT NULL,
QUANTITY_TO NUMBER(17,4) NOT NULL,
CUSIP2 CHAR(12) NOT NULL,
CNTRY_OF_ISSUE CHAR(3) NOT NULL,
EFFECTIVE_DATE_FROM DATE NOT NULL,
EFFECTIVE_DATE_TO DATE NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PRICE_CURRENCY CHAR(3) NOT NULL,
SHORTNAME CHAR(20) NOT NULL,
EXP_DATE DATE NOT NULL,
MARGINABLE CHAR(1) NOT NULL,
OPTION_PERCENT_TYPE CHAR(1) NOT NULL,
HSE_TO_EXCHANGE CHAR(1) NOT NULL,
FED_TO_EXCHANGE CHAR(1) NOT NULL,
SECNO CHAR(12) NOT NULL,
BOND_RATINGS_CATEGORY CHAR(11) NOT NULL,
HOUSE_PERCENT NUMBER(9,6) NOT NULL,
NYSE_PERCENT NUMBER(9,6) NOT NULL,
FED_PERCENT NUMBER(9,6) NOT NULL,
HOUSE_MIN_PERCENT NUMBER(9,6) NOT NULL,
NYSE_MIN_PERCENT NUMBER(9,6) NOT NULL,
FED_MIN_PERCENT NUMBER(9,6) NOT NULL,
HOUSE_PRINC_PERCENT NUMBER(9,6) NOT NULL,
NYSE_PRINC_PERCENT NUMBER(9,6) NOT NULL,
FED_PRINC_PERCENT NUMBER(9,6) NOT NULL,
CONC_PERCENT NUMBER(9,6) NOT NULL,
HAIRCUT_PERCENT NUMBER(9,6) NOT NULL,
DOLLAR_PER_SHARE NUMBER(15,7) NOT NULL,
COMMENT_LINE CHAR(30) NOT NULL,
APPROVAL1 CHAR(10) NOT NULL,
APPROVAL2 CHAR(10) NOT NULL,
PERCENT_OF_SHARES NUMBER(9,6) NOT NULL,
PREV_FED_PCT NUMBER(9,6) NOT NULL,
NYSE_NO_MGN CHAR(1) NOT NULL,
RESTRICTED CHAR(1) NOT NULL,
BRBASE_INDICATOR CHAR(1) NOT NULL,
CUSIP_INDICATOR CHAR(1) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_FOREX_PRICES (
CONTRACT CHAR(20) NOT NULL,
CODE CHAR(20) NOT NULL,
DISPLAY_NAME CHAR(50) NOT NULL,
BID NUMBER(25,6) NOT NULL,
ASK NUMBER(25,6) NOT NULL,
PRICE NUMBER(25,6) NOT NULL,
TIMESTAMP CHAR(25) NOT NULL
)
GO
CREATE TABLE TBLMG_GUARANTEED_ACCOUNTS (
FIRM CHAR(4) NOT NULL,
BRBASEA CHAR(9) NOT NULL,
BRBASEB CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
RELATIONSHIP CHAR(1) NOT NULL,
USERID CHAR(8) NOT NULL,
DOLLAR_LIMIT NUMBER(17,2) NOT NULL
)
GO
CREATE TABLE TBLMG_HEDGES (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
UNDER_CUSIP CHAR(12) NOT NULL,
SEQUENCE NUMBER(22,0) NOT NULL,
UNDER_PRICE FLOAT NOT NULL,
FEDERAL_EXCESS FLOAT NOT NULL,
HOUSE_EXCESS FLOAT NOT NULL,
LINK CHAR(10) NOT NULL,
LEFT_TYPE CHAR(2) NOT NULL,
LEFT_CUSIP CHAR(12) NOT NULL,
LEFT_PRICE FLOAT NOT NULL,
LEFT_QTY FLOAT NOT NULL,
LEFT_CONV FLOAT NOT NULL,
LEFT_DESC1 CHAR(30) NOT NULL,
LEFT_DESC2 CHAR(30) NOT NULL,
LEFT_DESC3 CHAR(30) NOT NULL,
LEFT_DESC4 CHAR(30) NOT NULL,
RIGHT_TYPE CHAR(2) NOT NULL,
RIGHT_CUSIP CHAR(12) NOT NULL,
RIGHT_PRICE FLOAT NOT NULL,
RIGHT_QTY FLOAT NOT NULL,
RIGHT_CONV FLOAT NOT NULL,
RIGHT_DESC1 CHAR(30) NOT NULL,
RIGHT_DESC2 CHAR(30) NOT NULL,
RIGHT_DESC3 CHAR(30) NOT NULL,
RIGHT_DESC4 CHAR(30) NOT NULL,
CURRENCY CHAR(3) NOT NULL,
FLEX CHAR(1) NOT NULL,
USERID CHAR(10) NOT NULL,
LCDLCT DATE NOT NULL
)
GO
CREATE TABLE TBLMG_HOLIDAY (
HOLIDAY_DATE CHAR(8) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
TRADE_DATE_YORN CHAR(1) NOT NULL,
SETTLEMENT_DATE_YORN CHAR(1) NOT NULL,
DESCRIPTION CHAR(25) NOT NULL,
DAY_OF_WEEK CHAR(1) NOT NULL,
CURRENCY CHAR(3) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_IFA (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
EXCEPTION CHAR(3) NOT NULL,
CUSIP CHAR(12) NOT NULL,
RRN NUMBER(7,0) NOT NULL,
RELATED_EXC CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
AGE NUMBER(5,0) NOT NULL,
RECIPIENT_SUB NUMBER(2,0) NOT NULL,
RR CHAR(8) NOT NULL,
DVP CHAR(1) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
SSNO CHAR(11) NOT NULL,
TRADE_DATE CHAR(8) NOT NULL,
SETTLEMENT_DATE CHAR(8) NOT NULL,
ACTION_DATE CHAR(8) NOT NULL,
DUE_DATE CHAR(8) NOT NULL,
TRANS CHAR(4) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
MEMO_CODE CHAR(3) NOT NULL,
CCY CHAR(3) NOT NULL,
EXTENSION_REASON CHAR(2) NOT NULL,
GROUP_15C3 CHAR(2) NOT NULL,
IFA_RULE CHAR(2) NOT NULL,
DELIVER_WITHIN_24 CHAR(1) NOT NULL,
FUND CHAR(1) NOT NULL,
UNPRICED CHAR(1) NOT NULL,
MARGIN_APPROVAL CHAR(1) NOT NULL,
SYNDICATE CHAR(1) NOT NULL,
ACTION_TAKEN CHAR(20) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
DESCRIPTION5 CHAR(30) NOT NULL,
NA1 CHAR(30) NOT NULL,
NA2 CHAR(30) NOT NULL,
NA3 CHAR(30) NOT NULL,
NA4 CHAR(30) NOT NULL,
NA5 CHAR(30) NOT NULL,
NA6 CHAR(30) NOT NULL,
AMOUNT NUMBER(17,2) NOT NULL,
AMOUNT_USD NUMBER(17,2) NOT NULL,
OVERDUE_AMOUNT NUMBER(17,2) NOT NULL,
OVERDUE_AMOUNT_USD NUMBER(17,2) NOT NULL,
QUANTITY NUMBER(17,4) NOT NULL,
OVERDUE_QUANTITY NUMBER(17,4) NOT NULL,
MONEY_FUND NUMBER(17,2) NOT NULL,
CCY_RATE NUMBER(17,9) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
PCT NUMBER(7,3) NOT NULL,
USERID CHAR(8) NOT NULL,
SYMBOL CHAR(8) NOT NULL,
PM_ACCT CHAR(1) NOT NULL,
PM_ELIG_POS CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_IFA_RULES (
IFA_RULE CHAR(2) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
DESCRIPTION CHAR(25) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_INTEREST_BALANCES (
FIRM CHAR(4) NOT NULL,
CCY CHAR(3) NOT NULL,
BRBASE CHAR(9) NOT NULL,
FROM_DATE CHAR(8) NOT NULL,
TO_DATE CHAR(8) NOT NULL,
PERIOD_FROM CHAR(8) NOT NULL,
PERIOD_TO CHAR(8) NOT NULL,
NO_DAYS NUMBER(3,0) NOT NULL,
GROUP_CODE CHAR(4) NOT NULL,
TYPE CHAR(1) NOT NULL,
INT_BAL NUMBER(17,2) NOT NULL,
GROUP_BAL NUMBER(17,2) NOT NULL,
PCT NUMBER(6,3) NOT NULL,
SHORTNAME CHAR(13) NOT NULL,
CUSIP CHAR(12) NOT NULL,
TAG CHAR(12) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SYMBOL CHAR(12) NOT NULL,
FIRM_RATE NUMBER(6,3) NOT NULL,
FIRM_DEV NUMBER(6,3) NOT NULL,
MIN_RATE NUMBER(6,3) NOT NULL,
COST_RATE NUMBER(6,3) NOT NULL,
MGN_AVAIL NUMBER(17,2) NOT NULL,
BUYPWR NUMBER(17,2) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
QTY NUMBER(17,4) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_INTEREST_RATE_MASTER (
FIRM CHAR(4) NOT NULL,
CURRENCY_CUSIP CHAR(12) NOT NULL,
BRBASE CHAR(9) NOT NULL,
INTEREST_TYPE CHAR(2) NOT NULL,
RATE_GROUP CHAR(1) NOT NULL,
RATE_TYPE CHAR(1) NOT NULL,
ACCOUNT_GROUP CHAR(4) NOT NULL,
EFFECTIVE_DATE CHAR(8) NOT NULL,
MINIMUM_AMOUNT NUMBER(17,2) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
RATE_PERCENT NUMBER(9,6) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_INT_BASE_RATES (
FIRM CHAR(4) NOT NULL,
RATE_GROUP CHAR(1) NOT NULL,
EFFECTIVE_DATE CHAR(8) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
RATE_PERCENT NUMBER(9,6) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_INT_BASE_RATE_DESC (
FIRM CHAR(4) NOT NULL,
RATE_GROUP CHAR(1) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
DESCRIPTION CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_JOB_CONTROL (
JOB CHAR(10) NOT NULL,
SEQUENCE NUMBER(9,0) NOT NULL,
STEP CHAR(10) NOT NULL,
RESTART_STEP CHAR(10) NOT NULL,
PARAMETER CHAR(30) NOT NULL,
STEP_DESCRIPTION CHAR(30) NOT NULL,
ABEND_CODE CHAR(8) NOT NULL,
STATUS CHAR(10) NOT NULL,
USERID CHAR(10) NOT NULL,
LCDLCT DATE NOT NULL
)
GO
CREATE TABLE TBLMG_MARKET_VALUE (
BRBASE CHAR(8) NOT NULL,
UNDER_CUSIP CHAR(12) NOT NULL,
CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
TYPE CHAR(1) NOT NULL,
QUANTITY NUMBER(17,4) NOT NULL,
HAIRCUT CHAR(1) NOT NULL,
CONCENTRATION CHAR(1) NOT NULL,
FLEX CHAR(1) NOT NULL,
HOUSE_REQUIREMENT NUMBER(17,2) NOT NULL,
FEDERAL_REQUIREMENT NUMBER(17,2) NOT NULL,
NYSE_REQUIREMENT NUMBER(17,2) NOT NULL,
MARKET_VAL_ADJ NUMBER(17,2) NOT NULL,
SEQUENCE NUMBER(8,0) NOT NULL,
MAINTENANCE_PCT NUMBER(9,6) NOT NULL
)
GO
CREATE TABLE TBLMG_MARKET_VALUE_PROD (
BRBASE CHAR(8) NOT NULL,
UNDER_CUSIP CHAR(12) NOT NULL,
CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
TYPE CHAR(1) NOT NULL,
QUANTITY NUMBER(17,4) NOT NULL,
HAIRCUT CHAR(1) NOT NULL,
CONCENTRATION CHAR(1) NOT NULL,
FLEX CHAR(1) NOT NULL,
HOUSE_REQUIREMENT NUMBER(17,2) NOT NULL,
FEDERAL_REQUIREMENT NUMBER(17,2) NOT NULL,
NYSE_REQUIREMENT NUMBER(17,2) NOT NULL,
MARKET_VAL_ADJ NUMBER(17,2) NOT NULL,
SEQUENCE NUMBER(8,0) NOT NULL,
MAINTENANCE_PCT NUMBER(9,6) NOT NULL
)
GO
CREATE TABLE TBLMG_MONEY_LINE (
BRBASE CHAR(8) NOT NULL,
TIMESTAMP_FROM CHAR(30) NULL,
TIMESTAMP_TO CHAR(30) NULL,
HOUSE_EQUITY NUMBER(18,2) NOT NULL,
HOUSE_REQUIREMENT_OPTIONS NUMBER(18,2) NOT NULL,
HOUSE_REQUIREMENT_STOCK NUMBER(18,2) NOT NULL,
HOUSE_REQUIREMENT_TOTAL NUMBER(18,2) NOT NULL,
HOUSE_EXCESS NUMBER(18,2) NOT NULL,
NYSE_EQUITY NUMBER(18,2) NOT NULL,
NYSE_REQUIREMENT_OPTIONS NUMBER(18,2) NOT NULL,
NYSE_REQUIREMENT_STOCK NUMBER(18,2) NOT NULL,
NYSE_REQUIREMENT_TOTAL NUMBER(18,2) NOT NULL,
NYSE_EXCESS NUMBER(18,2) NOT NULL,
FEDERAL_EQUITY NUMBER(18,2) NOT NULL,
FEDERAL_REQUIREMENT_OPTIONS NUMBER(18,2) NOT NULL,
FEDERAL_REQUIREMENT_STOCK NUMBER(18,2) NOT NULL,
FEDERAL_REQUIREMENT_TOTAL NUMBER(18,2) NOT NULL,
FEDERAL_EXCESS NUMBER(18,2) NOT NULL,
SMA NUMBER(18,2) NOT NULL,
MARGIN_CASH_AVAILABLE NUMBER(18,2) NOT NULL,
TOTAL_LONG_VALUE NUMBER(18,2) NOT NULL,
TOTAL_SHORT_VALUE NUMBER(18,2) NOT NULL,
TOTAL_TRADE_DATE_BALANCE NUMBER(18,2) NOT NULL,
TOTAL_EQUITY NUMBER(18,2) NOT NULL,
OPTION_LONG_VALUE NUMBER(18,2) NOT NULL,
OPTION_SHORT_VALUE NUMBER(18,2) NOT NULL,
TOTAL_NON_MARGIN NUMBER(18,2) NOT NULL,
REG_U_REQUIREMENT NUMBER(18,2) NOT NULL,
REG_U_OPTION_REQUIREMENT NUMBER(18,2) NOT NULL,
REG_U_EXCESS NUMBER(18,2) NOT NULL,
MARGIN_ELIGIBLE_LONG_VALUE NUMBER(18,2) NOT NULL,
REG_U_OPTION_LONG_VALUE NUMBER(18,2) NOT NULL,
REG_U_OPTION_SHORT_VALUE NUMBER(18,2) NOT NULL,
REG_U_SHORT_VALUE NUMBER(18,2) NOT NULL,
GOODFAITH_MARKET_VALUE NUMBER(18,2) NOT NULL,
COMB CHAR(1) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
BUYING_POWER NUMBER(18,2) NOT NULL,
COMBINEDBRBASE CHAR(8) NOT NULL
)
GO
CREATE TABLE TBLMG_MONEY_LINE_HISTORY (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
RUN_DATE CHAR(8) NOT NULL,
TYPE CHAR(1) NOT NULL,
TRADE_DATE_BALANCE NUMBER(17,2) NOT NULL,
SETTLEMENT_DATE_BALANCE NUMBER(17,2) NOT NULL,
CASH_AVAILABLE NUMBER(17,2) NOT NULL,
EQUITY NUMBER(14,0) NOT NULL,
SMA NUMBER(14,0) NOT NULL,
NYSE_EXCESS NUMBER(14,0) NOT NULL,
HOUSE_EXCESS NUMBER(14,0) NOT NULL,
MARKET_VALUE NUMBER(14,0) NOT NULL,
BUYING_POWER NUMBER(14,0) NOT NULL,
USERID CHAR(10) NOT NULL,
COMPANY CHAR(4) NOT NULL
)
GO
CREATE TABLE TBLMG_NA (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
RR CHAR(4) NOT NULL,
NAME1 CHAR(45) NOT NULL,
NAME2 CHAR(45) NOT NULL,
NAME3 CHAR(45) NOT NULL,
ADDRESS1 CHAR(45) NOT NULL,
ADDRESS2 CHAR(45) NOT NULL,
ADDRESS3 CHAR(45) NOT NULL,
CITY CHAR(25) NOT NULL,
STATE CHAR(2) NOT NULL,
COUNTRY CHAR(30) NOT NULL,
ZIP CHAR(10) NOT NULL,
ACCOUNT_GROUP CHAR(4) NOT NULL,
BASE_CURRENCY CHAR(3) NOT NULL,
SOCIAL_SEC_NO CHAR(11) NOT NULL,
TAX_ID CHAR(10) NOT NULL,
HOME_TEL CHAR(20) NOT NULL,
BUSINESS_TEL CHAR(20) NOT NULL,
FAX CHAR(20) NOT NULL,
TELEX CHAR(20) NOT NULL,
MAX_CREDIT_LINE NUMBER(9,0) NOT NULL,
OPEN_DATE CHAR(8) NOT NULL,
RESTRICT_DATE CHAR(8) NOT NULL,
OLD_ACCOUNT CHAR(10) NOT NULL,
FOCUS CHAR(4) NOT NULL,
COMM_SCHED CHAR(2) NOT NULL,
NO_CONFIRMS CHAR(1) NOT NULL,
STATEMENT CHAR(1) NOT NULL,
COMPLIANCE CHAR(1) NOT NULL,
TEFRA CHAR(1) NOT NULL,
IRA CHAR(1) NOT NULL,
SWEEP CHAR(3) NOT NULL,
CITIZEN CHAR(3) NOT NULL,
RESIDENCE CHAR(3) NOT NULL,
NEW_ACCOUNT CHAR(1) NOT NULL,
MARGIN_AGMT CHAR(1) NOT NULL,
CUSTOMER_WAIVER CHAR(1) NOT NULL,
JOINT_AGMT CHAR(1) NOT NULL,
JOINT_TENANT CHAR(1) NOT NULL,
JOINT_WROS CHAR(1) NOT NULL,
OPTION_AGMT CHAR(1) NOT NULL,
TRUST_PAPERS1 CHAR(1) NOT NULL,
TRUST_PAPERS2 CHAR(1) NOT NULL,
TRUST_PAPERS3 CHAR(1) NOT NULL,
PARTN_PAPERS1 CHAR(1) NOT NULL,
PARTN_PAPERS2 CHAR(1) NOT NULL,
PARTN_PAPERS3 CHAR(1) NOT NULL,
FOUND_PAPERS1 CHAR(1) NOT NULL,
FOUND_PAPERS2 CHAR(1) NOT NULL,
FOUND_PAPERS3 CHAR(1) NOT NULL,
CORP_PAPERS1 CHAR(1) NOT NULL,
CORP_PAPERS2 CHAR(1) NOT NULL,
CORP_PAPERS3 CHAR(1) NOT NULL,
DISCRETION CHAR(1) NOT NULL,
TRADE_AUTH CHAR(1) NOT NULL,
OPT_BUY_CALLS CHAR(1) NOT NULL,
OPT_BUY_PUTS CHAR(1) NOT NULL,
OPT_WR_COV_CALL CHAR(1) NOT NULL,
OPT_WR_UNCOV_CALL CHAR(1) NOT NULL,
OPT_WR_COV_PUT CHAR(1) NOT NULL,
OPT_WR_UNCOV_PUT CHAR(1) NOT NULL,
OPT_SPREADS CHAR(1) NOT NULL,
OPT_COMBINATIONS CHAR(1) NOT NULL,
DDA CHAR(20) NOT NULL,
ABA CHAR(10) NOT NULL,
POWER_OF_ATTY CHAR(13) NOT NULL,
TA_DISC_OTHER CHAR(13) NOT NULL,
INV_ADV_OTHER CHAR(13) NOT NULL,
GTY_MARGIN CHAR(7) NOT NULL,
GTY_MAINT CHAR(7) NOT NULL,
CASH_AGMT CHAR(1) NOT NULL,
TIME_DEP_LTR CHAR(1) NOT NULL,
TA_DISC_ASB CHAR(1) NOT NULL,
INV_ADV_ASB CHAR(1) NOT NULL,
PATTERN_DAY_TRDR CHAR(1) NOT NULL,
W9_TAX_ID CHAR(13) NOT NULL,
MEMO_NOTE CHAR(71) NOT NULL,
W8_FOREIGN CHAR(2) NOT NULL,
DISCOUNT_COMMISSION NUMBER(6,3) NOT NULL,
PROCEEDS_INSTRUCTION CHAR(1) NOT NULL,
INCOME_INSTRUCTION CHAR(1) NOT NULL,
SECURITIES_INSTRUCTION CHAR(1) NOT NULL,
DELETED CHAR(1) NOT NULL,
DVP_INDICATOR CHAR(1) NOT NULL,
GUARANTEED_ACCOUNT CHAR(9) NOT NULL,
USERID CHAR(10) NOT NULL,
COMPANY CHAR(4) NOT NULL,
ACCT_CLASS CHAR(2) NOT NULL,
RN_BRBASE CHAR(8) NOT NULL
)
GO
CREATE TABLE TBLMG_NA_PB (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
CLIENT_NAME CHAR(35) NOT NULL,
EMAIL CHAR(50) NOT NULL,
DIR CHAR(8) NOT NULL,
MV_TRADE_LIMIT NUMBER(17,2) NOT NULL,
EXECBKR10 CHAR(4) NOT NULL,
EXECBKR9 CHAR(4) NOT NULL,
EXECBKR8 CHAR(4) NOT NULL,
EXECBKR7 CHAR(4) NOT NULL,
EXECBKR6 CHAR(4) NOT NULL,
EXECBKR5 CHAR(4) NOT NULL,
EXECBKR4 CHAR(4) NOT NULL,
EXECBKR3 CHAR(4) NOT NULL,
EXECBKR2 CHAR(4) NOT NULL,
EXECBKR1 CHAR(4) NOT NULL,
MIN_EQUITY NUMBER(17,2) NOT NULL,
DEBIT_CAP NUMBER(17,2) NOT NULL,
SYSSMA CHAR(1) NOT NULL,
INTEREST_GROUP CHAR(4) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_NA_SUPPLEMENT (
BRBASE CHAR(7) NOT NULL,
NEW_ACCT CHAR(1) NOT NULL,
MGN_AGMT CHAR(1) NOT NULL,
CUST_WAIVER CHAR(1) NOT NULL,
FILLER1 CHAR(1) NOT NULL,
COUNTRY_RESIDE CHAR(2) NOT NULL,
COUNTRY_CITIZEN CHAR(2) NOT NULL,
FILLER2 CHAR(1) NOT NULL,
JOINT_AGMT CHAR(1) NOT NULL,
JT_TEN CHAR(1) NOT NULL,
JT_WROS CHAR(1) NOT NULL,
OPT_AGMT CHAR(1) NOT NULL,
TRUST_PAPERS1 CHAR(1) NOT NULL,
TRUST_PAPERS2 CHAR(1) NOT NULL,
TRUST_PAPERS3 CHAR(1) NOT NULL,
PARTN_PAPERS1 CHAR(1) NOT NULL,
PARTN_PAPERS2 CHAR(1) NOT NULL,
PARTN_PAPERS3 CHAR(1) NOT NULL,
FOUND_PAPERS1 CHAR(1) NOT NULL,
FOUND_PAPERS2 CHAR(1) NOT NULL,
FOUND_PAPERS3 CHAR(1) NOT NULL,
CORP_PAPERS1 CHAR(1) NOT NULL,
CORP_PAPERS2 CHAR(1) NOT NULL,
CORP_PAPERS3 CHAR(1) NOT NULL,
NON_DESIG_ACCT CHAR(1) NOT NULL,
DISCRETION CHAR(1) NOT NULL,
TRD_AUTH CHAR(1) NOT NULL,
OPT_BUY_CALLS CHAR(1) NOT NULL,
OPT_BUY_PUTS CHAR(1) NOT NULL,
OPT_WRITE_COV_CALLS CHAR(1) NOT NULL,
OPT_WRITE_UNC_CALLS CHAR(1) NOT NULL,
OPT_WRITE_COV_PUTS CHAR(1) NOT NULL,
OPT_WRITE_UNC_PUTS CHAR(1) NOT NULL,
OPT_SPREADS CHAR(1) NOT NULL,
OPT_COMBINATIONS CHAR(1) NOT NULL,
USERID CHAR(8) NOT NULL,
LCD CHAR(8) NOT NULL,
LCT CHAR(6) NOT NULL,
FILLER3 CHAR(1) NOT NULL,
BANK_ACCT1 CHAR(9) NOT NULL,
BANK_ACCT2 CHAR(9) NOT NULL,
BANK_ACCT3 CHAR(9) NOT NULL,
BANK_ACCT4 CHAR(9) NOT NULL,
BANK_ACCT5 CHAR(9) NOT NULL,
BANK_ACCT6 CHAR(9) NOT NULL,
BANK_ACCT7 CHAR(9) NOT NULL,
BANK_ACCT8 CHAR(9) NOT NULL,
FILLER4 CHAR(2) NOT NULL,
PWR_ATTY CHAR(13) NOT NULL,
TA_DISC_OTHER CHAR(13) NOT NULL,
INV_ADV_OTHER CHAR(13) NOT NULL,
GTY_MGN CHAR(7) NOT NULL,
GTY_MAINT CHAR(7) NOT NULL,
CSH_AGMT CHAR(1) NOT NULL,
GVT_SCALE CHAR(1) NOT NULL,
PROJ_DRCR CHAR(1) NOT NULL,
TIME_DEP_LTR CHAR(1) NOT NULL,
TA_DISC_ASB CHAR(1) NOT NULL,
BOARD_OF_DIR CHAR(1) NOT NULL,
INV_ADV_ASB CHAR(1) NOT NULL,
ACCRED_INV_LTR CHAR(1) NOT NULL,
PATTERN_DAY_TRDR CHAR(1) NOT NULL,
W9_TAXID CHAR(13) NOT NULL,
NOTE CHAR(71) NOT NULL,
W8_FOREIGN CHAR(2) NOT NULL,
RR CHAR(3) NOT NULL,
OPENED_MMDDCCYY CHAR(8) NOT NULL,
FILLER5 CHAR(5) NOT NULL,
VERIFICATION CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_NOTEPAD (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
EXPIRATION_DATE CHAR(8) NOT NULL,
ACTIVITY_DATE CHAR(8) NOT NULL,
LINE1 CHAR(44) NOT NULL,
LINE2 CHAR(44) NOT NULL,
LINE3 CHAR(44) NOT NULL,
LINE4 CHAR(44) NOT NULL,
LINE5 CHAR(44) NOT NULL,
LINE6 CHAR(44) NOT NULL,
LINE7 CHAR(44) NOT NULL,
LINE8 CHAR(44) NOT NULL,
LINE9 CHAR(44) NOT NULL,
LINE10 CHAR(44) NOT NULL,
PLEDGE_COLLATERAL NUMBER(17,2) NOT NULL,
USERID CHAR(10) NOT NULL,
COMPANY CHAR(4) NOT NULL,
ACATS CHAR(1) NOT NULL,
BLOCK CHAR(1) NOT NULL,
FROZEN CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_NSCC0800 (
GUTSNO NUMBER(7,0) NOT NULL,
FIRM_NAME CHAR(50) NOT NULL,
DBA_ETC CHAR(30) NOT NULL,
STREET CHAR(30) NOT NULL,
PO_BOX_ETC CHAR(30) NOT NULL,
CITY CHAR(30) NOT NULL,
STATE CHAR(2) NOT NULL,
ZIP CHAR(10) NOT NULL,
SERVICE CHAR(50) NOT NULL,
CLEARING_NO CHAR(5) NOT NULL,
EXCHG CHAR(4) NOT NULL,
OTC_SYMBOL CHAR(4) NOT NULL,
SORTKEY CHAR(50) NOT NULL,
PHONE CHAR(15) NOT NULL,
HEITNER CHAR(20) NOT NULL,
MUNI_OTC CHAR(4) NOT NULL,
MUNI_SYMB CHAR(5) NOT NULL,
TFT_CNS CHAR(3) NOT NULL
)
GO
CREATE TABLE TBLMG_NT_ETFS (
SYMBOL CHAR(9) NOT NULL,
CUSIP CHAR(12) NOT NULL,
DESCRIPTION CHAR(30) NOT NULL,
MULTIPLIER NUMBER(8,2) NOT NULL,
DIRECTION CHAR(5) NOT NULL,
STYLE CHAR(30) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_BOND_RATINGS (
FIRM CHAR(4) NOT NULL,
SEQUENCE CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
RATING CHAR(11) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_BOND_REQUIREMENTS (
FIRM CHAR(4) NOT NULL,
PA_BOND_SEQ NUMBER(22,0) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PA_BOND_TYPE CHAR(20) NOT NULL,
PA_BOND_DESCRIPTION CHAR(30) NOT NULL,
PA_BOND_PRICEMAT FLOAT NOT NULL,
PA_BOND_HOUSE_REQT FLOAT NOT NULL,
PA_BOND_EXCHANGE_REQT FLOAT NOT NULL,
PA_BOND_FEDERAL_REQT FLOAT NOT NULL,
PA_BOND_EXCHANGE_MIN FLOAT NOT NULL,
PA_BOND_HOUSE_MIN FLOAT NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_CRL (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
COMMENT_LINE CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_DATE (
PA_KEY CHAR(6) NOT NULL,
PA_FIRMNAME CHAR(30) NOT NULL,
PA_DEFAULT_CURRENCY CHAR(3) NOT NULL,
PA_RUN_DATE_M2 CHAR(8) NOT NULL,
PA_RUN_DATE_M1 CHAR(8) NOT NULL,
PA_RUN_DATE CHAR(8) NOT NULL,
PA_RUN_DATE_P1 CHAR(8) NOT NULL,
PA_RUN_DATE_P2 CHAR(8) NOT NULL,
PA_LINES_PER_PAGE CHAR(2) NOT NULL,
PA_DAY_OF_WEEK CHAR(1) NOT NULL,
PA_CAL_DAYS_TO_TDP1 CHAR(3) NOT NULL,
PA_SHUFFLE_LRD CHAR(8) NOT NULL,
PA_SHUFFLE_ME_LRD CHAR(8) NOT NULL,
USERID CHAR(10) NOT NULL,
LCDLCT DATE NOT NULL
)
GO
CREATE TABLE TBLMG_PA_DAY_TRADE_REQTS (
FIRM CHAR(4) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
REQT FLOAT NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_DBAG_EQUITY_RQMTS (
FIRM CHAR(4) NOT NULL,
PA_EQUITY_SEQUENCE NUMBER(22,0) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PA_EQUITY_LS CHAR(1) NOT NULL,
PA_EQUITY_DESCRIPTION CHAR(30) NOT NULL,
PA_EQUITY_MIN_PRICE FLOAT NOT NULL,
PA_EQUITY_HSE_REQT FLOAT NOT NULL,
PA_EQUITY_XCH_REQT FLOAT NOT NULL,
PA_EQUITY_FED_REQT FLOAT NOT NULL,
PA_EQUITY_HSE_MIN FLOAT NOT NULL,
PA_EQUITY_XCH_MIN FLOAT NOT NULL,
PA_EQUITY_FED_MIN FLOAT NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_EQUITY_REQUIREMENTS (
FIRM CHAR(4) NOT NULL,
PA_EQUITY_SEQUENCE NUMBER(22,0) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PA_EQUITY_LS CHAR(1) NOT NULL,
PA_EQUITY_DESCRIPTION CHAR(30) NOT NULL,
PA_EQUITY_MIN_PRICE FLOAT NOT NULL,
PA_EQUITY_HSE_REQT FLOAT NOT NULL,
PA_EQUITY_XCH_REQT FLOAT NOT NULL,
PA_EQUITY_FED_REQT FLOAT NOT NULL,
PA_EQUITY_HSE_MIN FLOAT NOT NULL,
PA_EQUITY_XCH_MIN FLOAT NOT NULL,
PA_EQUITY_FED_MIN FLOAT NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_EXCHANGE (
FIRM CHAR(4) NOT NULL,
EXCHANGE_CODE CHAR(1) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
EXCHANGE_DESCRIPTION CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_FLEX_ACCT_TYPE (
FIRM CHAR(4) NOT NULL,
ACCT_TYPE CHAR(1) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
ACCT_LEGEND CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_FLEX_CUSIP_VALUES (
FIRM CHAR(4) NOT NULL,
SEQUENCE CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
LEGEND CHAR(50) NOT NULL,
USERID CHAR(10) NOT NULL,
ABBREV CHAR(50) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_FLEX_LSH_CODES (
FIRM CHAR(4) NOT NULL,
LSH_CODE CHAR(2) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
LSH_LEGEND CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL,
LSH_ABBREV CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_HIGH_PROFILE_ACCTS (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
COMMENT_LINE CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_IFA_ASSIGNMENTS (
FIRM CHAR(4) NOT NULL,
RECIPIENT_NUMBER CHAR(3) NOT NULL,
IFA CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_IFA_NAMES (
FIRM CHAR(4) NOT NULL,
IFA CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
INQUIRY_SCREEN CHAR(2) NOT NULL,
DESCRIPTION CHAR(40) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_IFA_RECIPIENTS (
FIRM CHAR(4) NOT NULL,
RECIPIENT_NUMBER CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
USER_ACCESS_ID CHAR(15) NOT NULL,
FROMBRBASE CHAR(9) NOT NULL,
TOBRBASE CHAR(9) NOT NULL,
RR CHAR(4) NOT NULL,
USERID CHAR(10) NOT NULL,
REPORT_TITLE CHAR(30) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_IFA_TRANS_CODES (
FIRM CHAR(4) NOT NULL,
TRANS_CODE CHAR(4) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
DESCRIPTION CHAR(30) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_INDEX_SECURITIES (
INDEX_DESCRIPTION CHAR(10) NOT NULL,
CUSIP CHAR(12) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SYMBOL CHAR(12) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_NUMERIC_CONSTANTS (
FIRM CHAR(4) NOT NULL,
CONSTANT_KEY CHAR(6) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
CONSTANT_DESCRIPTION CHAR(30) NOT NULL,
CONSTANT_VALUE FLOAT NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_OPTION_REQUIREMENTS (
FIRM CHAR(4) NOT NULL,
PA_OPTION_SEQ NUMBER(22,0) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PA_OPTION_DESCRIPTION CHAR(30) NOT NULL,
PA_OPTION_HSE_REQT FLOAT NOT NULL,
PA_OPTION_XCH_REQT FLOAT NOT NULL,
PA_OPTION_FED_REQT FLOAT NOT NULL,
PA_OPTION_HSE_MIN FLOAT NOT NULL,
PA_OPTION_XCH_MIN FLOAT NOT NULL,
PA_OPTION_FED_MIN FLOAT NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_PERCENT_CONSTANTS (
FIRM CHAR(4) NOT NULL,
PA_PERCENT_KEY CHAR(6) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PA_PERCENT_VALUE CHAR(10) NOT NULL,
PA_PERCENT_DESCRIPTION CHAR(50) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_SECTYPE (
FIRM CHAR(4) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SECTYPE_DESCRIPTION CHAR(50) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_SECTYPE_RANGE (
FIRM CHAR(4) NOT NULL,
SECTYPE_FROM CHAR(4) NOT NULL,
SECTYPE_TO CHAR(4) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SECTYPE_DESCRIPTION CHAR(50) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PA_STATE_CODES (
STATE_CODE CHAR(2) NOT NULL,
STATE_DESCRIPTION CHAR(50) NOT NULL
)
GO
CREATE TABLE TBLMG_PM ( ---for class group detail lines
CONC CHAR(1) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
UNDER_SYM CHAR(10) NOT NULL,
SYM CHAR(10) NOT NULL,
UNDER_CUSIP CHAR(12) NOT NULL,
CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
MAT_DATE CHAR(8) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
STRIKE NUMBER(15,7) NOT NULL,
TDQTY NUMBER(17,4) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
CCY CHAR(3) NOT NULL,
FX NUMBER(15,7) NOT NULL,
USD_PRICE NUMBER(15,7) NOT NULL,
MV NUMBER(17,2) NOT NULL,
USD_MV NUMBER(17,2) NOT NULL,
UNDER_PRICE NUMBER(15,7) NOT NULL,
CONV NUMBER(15,7) NOT NULL,
ANS_VOL CHAR(1) NOT NULL,
ANS_COL CHAR(2) NOT NULL,
GROUPA_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPA_PCT_01 NUMBER(6,1) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PCT_02 NUMBER(6,1) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PCT_03 NUMBER(6,1) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PCT_04 NUMBER(6,1) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PCT_05 NUMBER(6,1) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PCT_06 NUMBER(6,1) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PCT_07 NUMBER(6,1) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PCT_08 NUMBER(6,1) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PCT_09 NUMBER(6,1) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PCT_10 NUMBER(6,1) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PCT_11 NUMBER(6,1) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PCT_12 NUMBER(6,1) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PCT_13 NUMBER(6,1) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PCT_14 NUMBER(6,1) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PCT_15 NUMBER(6,1) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PCT_16 NUMBER(6,1) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PCT_17 NUMBER(6,1) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PCT_18 NUMBER(6,1) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PCT_19 NUMBER(6,1) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PCT_20 NUMBER(6,1) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PCT_21 NUMBER(6,1) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPB_PCT_01 NUMBER(6,1) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PCT_02 NUMBER(6,1) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PCT_03 NUMBER(6,1) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PCT_04 NUMBER(6,1) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PCT_05 NUMBER(6,1) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PCT_06 NUMBER(6,1) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PCT_07 NUMBER(6,1) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PCT_08 NUMBER(6,1) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PCT_09 NUMBER(6,1) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PCT_10 NUMBER(6,1) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PCT_11 NUMBER(6,1) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PCT_12 NUMBER(6,1) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PCT_13 NUMBER(6,1) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PCT_14 NUMBER(6,1) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PCT_15 NUMBER(6,1) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PCT_16 NUMBER(6,1) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PCT_17 NUMBER(6,1) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PCT_18 NUMBER(6,1) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PCT_19 NUMBER(6,1) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PCT_20 NUMBER(6,1) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PCT_21 NUMBER(6,1) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPC_PCT_01 NUMBER(6,1) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PCT_02 NUMBER(6,1) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PCT_03 NUMBER(6,1) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PCT_04 NUMBER(6,1) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PCT_05 NUMBER(6,1) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PCT_06 NUMBER(6,1) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PCT_07 NUMBER(6,1) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PCT_08 NUMBER(6,1) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PCT_09 NUMBER(6,1) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PCT_10 NUMBER(6,1) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PCT_11 NUMBER(6,1) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PCT_12 NUMBER(6,1) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PCT_13 NUMBER(6,1) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PCT_14 NUMBER(6,1) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PCT_15 NUMBER(6,1) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PCT_16 NUMBER(6,1) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PCT_17 NUMBER(6,1) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PCT_18 NUMBER(6,1) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PCT_19 NUMBER(6,1) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PCT_20 NUMBER(6,1) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PCT_21 NUMBER(6,1) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_21 NUMBER(17,6) NOT NULL,
VOLATILITY NUMBER(10,7) NOT NULL,
TRADE_VOLUME NUMBER(9,0) NOT NULL,
VOLATILITY_DAYS CHAR(3) NOT NULL,
VOLUME_DAYS CHAR(3) NOT NULL,
MARKET_CAP NUMBER(14,2) NOT NULL,
ISSUE_SIZE NUMBER(12,0) NOT NULL,
COUNTRY CHAR(2) NOT NULL,
EXCH CHAR(4) NOT NULL,
EXCH_COUNTRY CHAR(2) NOT NULL,
EQCCY CHAR(3) NOT NULL,
DOLLAR_DELTA NUMBER(17,0) NOT NULL,
MIN_RQT NUMBER(17,2) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
UNDER_ADP_NUMBER CHAR(7) NOT NULL,
ADJ_MAX_DOWN_SHOCK NUMBER(4,1) NOT NULL,
ADJ_MAX_UP_SHOCK NUMBER(4,1) NOT NULL,
VOLT_ADJ_DOWN_SHOCK NUMBER(4,1) NOT NULL,
VOLT_ADJ_UP_SHOCK NUMBER(4,1) NOT NULL,
MIN_PRICE_DOWN_SHOCK NUMBER(6,1) NOT NULL,
MIN_PRICE_UP_SHOCK NUMBER(6,1) NOT NULL,
CPORT_RQT NUMBER(17,2) NOT NULL,
CVB_PREMIUM NUMBER(17,2) NOT NULL,
SHRS_PER NUMBER(15,7) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_ACCOUNTS (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
COMMENT1 CHAR(50) NOT NULL,
USERID CHAR(8) NOT NULL,
PROD_OR_DEMO_ACCT CHAR(1) NULL
)
GO
CREATE TABLE TBLMG_PM_CONSTANTS (
FIRM CHAR(4) NOT NULL,
CONSTANT_KEY CHAR(6) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
CONSTANT_DESCRIPTION CHAR(45) NOT NULL,
CONSTANT_VALUE NUMBER(17,3) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_M2 (
CONC CHAR(1) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
UNDER_SYM CHAR(10) NOT NULL,
SYM CHAR(10) NOT NULL,
UNDER_CUSIP CHAR(12) NOT NULL,
CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
MAT_DATE CHAR(8) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
STRIKE NUMBER(15,7) NOT NULL,
TDQTY NUMBER(17,4) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
CCY CHAR(3) NOT NULL,
FX NUMBER(15,7) NOT NULL,
USD_PRICE NUMBER(15,7) NOT NULL,
MV NUMBER(17,2) NOT NULL,
USD_MV NUMBER(17,2) NOT NULL,
UNDER_PRICE NUMBER(15,7) NOT NULL,
CONV NUMBER(15,7) NOT NULL,
ANS_VOL CHAR(1) NOT NULL,
ANS_COL CHAR(2) NOT NULL,
GROUPA_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPA_PCT_01 NUMBER(6,1) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PCT_02 NUMBER(6,1) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PCT_03 NUMBER(6,1) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PCT_04 NUMBER(6,1) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PCT_05 NUMBER(6,1) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PCT_06 NUMBER(6,1) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PCT_07 NUMBER(6,1) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PCT_08 NUMBER(6,1) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PCT_09 NUMBER(6,1) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PCT_10 NUMBER(6,1) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PCT_11 NUMBER(6,1) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PCT_12 NUMBER(6,1) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PCT_13 NUMBER(6,1) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PCT_14 NUMBER(6,1) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PCT_15 NUMBER(6,1) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PCT_16 NUMBER(6,1) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PCT_17 NUMBER(6,1) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PCT_18 NUMBER(6,1) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PCT_19 NUMBER(6,1) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PCT_20 NUMBER(6,1) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PCT_21 NUMBER(6,1) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPB_PCT_01 NUMBER(6,1) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PCT_02 NUMBER(6,1) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PCT_03 NUMBER(6,1) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PCT_04 NUMBER(6,1) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PCT_05 NUMBER(6,1) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PCT_06 NUMBER(6,1) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PCT_07 NUMBER(6,1) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PCT_08 NUMBER(6,1) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PCT_09 NUMBER(6,1) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PCT_10 NUMBER(6,1) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PCT_11 NUMBER(6,1) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PCT_12 NUMBER(6,1) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PCT_13 NUMBER(6,1) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PCT_14 NUMBER(6,1) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PCT_15 NUMBER(6,1) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PCT_16 NUMBER(6,1) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PCT_17 NUMBER(6,1) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PCT_18 NUMBER(6,1) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PCT_19 NUMBER(6,1) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PCT_20 NUMBER(6,1) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PCT_21 NUMBER(6,1) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPC_PCT_01 NUMBER(6,1) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PCT_02 NUMBER(6,1) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PCT_03 NUMBER(6,1) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PCT_04 NUMBER(6,1) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PCT_05 NUMBER(6,1) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PCT_06 NUMBER(6,1) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PCT_07 NUMBER(6,1) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PCT_08 NUMBER(6,1) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PCT_09 NUMBER(6,1) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PCT_10 NUMBER(6,1) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PCT_11 NUMBER(6,1) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PCT_12 NUMBER(6,1) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PCT_13 NUMBER(6,1) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PCT_14 NUMBER(6,1) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PCT_15 NUMBER(6,1) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PCT_16 NUMBER(6,1) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PCT_17 NUMBER(6,1) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PCT_18 NUMBER(6,1) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PCT_19 NUMBER(6,1) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PCT_20 NUMBER(6,1) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PCT_21 NUMBER(6,1) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_21 NUMBER(17,6) NOT NULL,
VOLATILITY NUMBER(10,7) NOT NULL,
TRADE_VOLUME NUMBER(9,0) NOT NULL,
VOLATILITY_DAYS CHAR(3) NOT NULL,
VOLUME_DAYS CHAR(3) NOT NULL,
MARKET_CAP NUMBER(14,2) NOT NULL,
ISSUE_SIZE NUMBER(12,0) NOT NULL,
COUNTRY CHAR(2) NOT NULL,
EXCH CHAR(4) NOT NULL,
EXCH_COUNTRY CHAR(2) NOT NULL,
EQCCY CHAR(3) NOT NULL,
DOLLAR_DELTA NUMBER(17,0) NOT NULL,
MIN_RQT NUMBER(17,2) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
UNDER_ADP_NUMBER CHAR(7) NOT NULL,
ADJ_MAX_DOWN_SHOCK NUMBER(4,1) NOT NULL,
ADJ_MAX_UP_SHOCK NUMBER(4,1) NOT NULL,
VOLT_ADJ_DOWN_SHOCK NUMBER(4,1) NOT NULL,
VOLT_ADJ_UP_SHOCK NUMBER(4,1) NOT NULL,
MIN_PRICE_DOWN_SHOCK NUMBER(6,1) NOT NULL,
MIN_PRICE_UP_SHOCK NUMBER(6,1) NOT NULL,
CPORT_RQT NUMBER(17,2) NOT NULL,
CVB_PREMIUM NUMBER(17,2) NOT NULL,
SHRS_PER NUMBER(15,7) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_SUMMARY (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
LMV NUMBER(17,2) NOT NULL,
SMV NUMBER(17,2) NOT NULL,
NMV NUMBER(17,2) NOT NULL,
ANS_VOL CHAR(1) NOT NULL,
ANS_COL CHAR(2) NOT NULL,
TOT_REQT NUMBER(17,2) NOT NULL, --previous day tot_reqt in _m2 table
TOT_REQT_PCT NUMBER(6,3) NOT NULL,
BASE_REQT NUMBER(17,2) NOT NULL,
LIQ_REQT NUMBER(17,2) NOT NULL,
CONC_REQT NUMBER(17,2) NOT NULL,
PREM_REQT NUMBER(17,2) NOT NULL,
MIN_REQT NUMBER(17,2) NOT NULL,
GROUPA_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
LIQ_VOL_CHG NUMBER(17,0) NOT NULL,
LIQ_ISS_CHG NUMBER(17,0) NOT NULL,
LIQ_LS_CHG NUMBER(17,0) NOT NULL,
LIQ_POSITION NUMBER(17,0) NOT NULL,
LIQ_DAYS NUMBER(9,1) NOT NULL,
LIQ_ISSUE_PCT NUMBER(9,1) NOT NULL,
MIN_SHOCK_PCT NUMBER(6,1) NOT NULL,
MAX_SHOCK_PCT NUMBER(6,1) NOT NULL,
BASE_PX_SHOCK NUMBER(6,1) NOT NULL,
CPORT_REQT NUMBER(17,2) NOT NULL,
MARKET_CAP NUMBER(14,2) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_SUMMARY_CONC (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
LMV NUMBER(17,2) NOT NULL,
SMV NUMBER(17,2) NOT NULL,
NMV NUMBER(17,2) NOT NULL,
ANS_VOL CHAR(1) NOT NULL,
ANS_COL CHAR(2) NOT NULL,
TOT_REQT NUMBER(17,2) NOT NULL,
TOT_REQT_PCT NUMBER(6,3) NOT NULL,
BASE_REQT NUMBER(17,2) NOT NULL,
LIQ_REQT NUMBER(17,2) NOT NULL,
CONC_REQT NUMBER(17,2) NOT NULL,
PREM_REQT NUMBER(17,2) NOT NULL,
MIN_REQT NUMBER(17,2) NOT NULL,
GROUPA_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
LIQ_VOL_CHG NUMBER(17,0) NOT NULL,
LIQ_ISS_CHG NUMBER(17,0) NOT NULL,
LIQ_LS_CHG NUMBER(17,0) NOT NULL,
LIQ_POSITION NUMBER(17,0) NOT NULL,
LIQ_DAYS NUMBER(9,1) NOT NULL,
LIQ_ISSUE_PCT NUMBER(9,1) NOT NULL,
MIN_SHOCK_PCT NUMBER(6,1) NOT NULL,
MAX_SHOCK_PCT NUMBER(6,1) NOT NULL,
BASE_PX_SHOCK NUMBER(6,1) NOT NULL,
CPORT_REQT NUMBER(17,2) NOT NULL,
MARKET_CAP NUMBER(14,2) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_SUMMARY_CONC_M2 (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
LMV NUMBER(17,2) NOT NULL,
SMV NUMBER(17,2) NOT NULL,
NMV NUMBER(17,2) NOT NULL,
ANS_VOL CHAR(1) NOT NULL,
ANS_COL CHAR(2) NOT NULL,
TOT_REQT NUMBER(17,2) NOT NULL,
TOT_REQT_PCT NUMBER(6,3) NOT NULL,
BASE_REQT NUMBER(17,2) NOT NULL,
LIQ_REQT NUMBER(17,2) NOT NULL,
CONC_REQT NUMBER(17,2) NOT NULL,
PREM_REQT NUMBER(17,2) NOT NULL,
MIN_REQT NUMBER(17,2) NOT NULL,
GROUPA_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
LIQ_VOL_CHG NUMBER(17,0) NOT NULL,
LIQ_ISS_CHG NUMBER(17,0) NOT NULL,
LIQ_LS_CHG NUMBER(17,0) NOT NULL,
LIQ_POSITION NUMBER(17,0) NOT NULL,
LIQ_DAYS NUMBER(9,1) NOT NULL,
LIQ_ISSUE_PCT NUMBER(9,1) NOT NULL,
MIN_SHOCK_PCT NUMBER(6,1) NOT NULL,
MAX_SHOCK_PCT NUMBER(6,1) NOT NULL,
BASE_PX_SHOCK NUMBER(6,1) NOT NULL,
CPORT_REQT NUMBER(17,2) NOT NULL,
MARKET_CAP NUMBER(14,2) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_SUMMARY_M2 (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
LMV NUMBER(17,2) NOT NULL,
SMV NUMBER(17,2) NOT NULL,
NMV NUMBER(17,2) NOT NULL,
ANS_VOL CHAR(1) NOT NULL,
ANS_COL CHAR(2) NOT NULL,
TOT_REQT NUMBER(17,2) NOT NULL,
TOT_REQT_PCT NUMBER(6,3) NOT NULL,
BASE_REQT NUMBER(17,2) NOT NULL,
LIQ_REQT NUMBER(17,2) NOT NULL,
CONC_REQT NUMBER(17,2) NOT NULL,
PREM_REQT NUMBER(17,2) NOT NULL,
MIN_REQT NUMBER(17,2) NOT NULL,
GROUPA_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
LIQ_VOL_CHG NUMBER(17,0) NOT NULL,
LIQ_ISS_CHG NUMBER(17,0) NOT NULL,
LIQ_LS_CHG NUMBER(17,0) NOT NULL,
LIQ_POSITION NUMBER(17,0) NOT NULL,
LIQ_DAYS NUMBER(9,1) NOT NULL,
LIQ_ISSUE_PCT NUMBER(9,1) NOT NULL,
MIN_SHOCK_PCT NUMBER(6,1) NOT NULL,
MAX_SHOCK_PCT NUMBER(6,1) NOT NULL,
BASE_PX_SHOCK NUMBER(6,1) NOT NULL,
CPORT_REQT NUMBER(17,2) NOT NULL,
MARKET_CAP NUMBER(14,2) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_SUM_OFFSETS (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
MIN_REQT NUMBER(17,6) NOT NULL,
ANSWER NUMBER(17,6) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_SUM_OFFSETS_CONC (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
MIN_REQT NUMBER(17,6) NOT NULL,
ANSWER NUMBER(17,6) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_SUM_OFFSETS_CONC_M2 (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
MIN_REQT NUMBER(17,6) NOT NULL,
ANSWER NUMBER(17,6) NOT NULL
)
GO
CREATE TABLE TBLMG_PM_SUM_OFFSETS_M2 (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
MIN_REQT NUMBER(17,6) NOT NULL,
ANSWER NUMBER(17,6) NOT NULL
)
GO
CREATE TABLE TBLMG_PRICES (
FIRM CHAR(4) NOT NULL,
CUSIP CHAR(12) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
CURRENCY CHAR(3) NOT NULL,
SOURCE CHAR(1) NOT NULL,
PRICE_DATE CHAR(8) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_QUEUE_CONTROL (
FIRM CHAR(4) NOT NULL,
REQUESTID NUMBER(22,0) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
USERID CHAR(10) NOT NULL,
SCENARIOID NUMBER(22,0) NOT NULL,
SCENARIOID_FLEX NUMBER(22,0) NOT NULL,
WORK_DATE DATE NOT NULL,
REQUEST_TYPE CHAR(1) NOT NULL,
STATUS CHAR(1) NOT NULL,
RUN_TYPE CHAR(1) NOT NULL,
WHATIF_ACTIVITY_ONLY CHAR(1) NOT NULL,
START_TIME DATE NOT NULL,
END_TIME DATE NOT NULL
)
GO
CREATE TABLE TBLMG_REG_U_ACCOUNTS (
FIRM CHAR(4) NOT NULL,
FROMBRBASE CHAR(9) NOT NULL,
TOBRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
NAME_LINE CHAR(30) NOT NULL,
CALC_TYPE_INDICATOR CHAR(1) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_REPORT_CONTROL (
FIRM CHAR(4) NOT NULL,
USERID1 CHAR(10) NOT NULL,
REPORT CHAR(20) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PRINTREPORT CHAR(1) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_REPORT_NAMES (
REPORT CHAR(8) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
TITLE CHAR(50) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_SHUFFLE_MASTERS (
G0 CHAR(64) NOT NULL,
G1 CHAR(64) NOT NULL,
G2 CHAR(64) NOT NULL,
DISABLE CHAR(1) NOT NULL,
DESCRIPTION CHAR(20) NOT NULL,
STATUS CHAR(10) NOT NULL,
SDI_INPUT CHAR(1) NOT NULL,
SDI_PATH CHAR(64) NOT NULL,
USERID CHAR(10) NOT NULL,
LCDLCT CHAR(26) NOT NULL
)
GO
CREATE TABLE TBLMG_SM (
CUSIP CHAR(12) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SYMBOL CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
EXCHANGE CHAR(1) NOT NULL,
FINANCIAL_TIMES CHAR(1) NOT NULL,
MARGINABLE CHAR(1) NOT NULL,
TAX_EXEMPT CHAR(1) NOT NULL,
CALL_TYPE CHAR(1) NOT NULL,
MOODY_RATING CHAR(5) NOT NULL,
SP_RATING CHAR(5) NOT NULL,
AGE_SECURITY NUMBER(3,0) NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,--desc for class_gr total line
PAYMENT_PERIOD CHAR(1) NOT NULL,
EURO CHAR(1) NOT NULL,
COUNTRY_OF_ISSUE CHAR(5) NOT NULL,
DTC CHAR(1) NOT NULL,
EXP_LOC CHAR(2) NOT NULL,
SECTYPE_PUT_CALL CHAR(1) NOT NULL,
ISO_CURRENCY CHAR(3) NOT NULL,
MATURITY_DATE CHAR(8) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
INTEREST_PERIOD1 NUMBER(4,0) NOT NULL,
INTEREST_PERIOD2 NUMBER(4,0) NOT NULL,
INTEREST_PERIOD3 NUMBER(4,0) NOT NULL,
INTEREST_PERIOD4 NUMBER(4,0) NOT NULL,
PF_EFFECTIVE_DATE CHAR(6) NOT NULL,
DATED_DATE CHAR(8) NOT NULL,
FIRST_COUPON CHAR(8) NOT NULL,
CALL_DATE CHAR(8) NOT NULL,
PUT_DATE CHAR(8) NOT NULL,
REPLACEMENT_VALUE NUMBER(7,3) NOT NULL,
TEMP_CONTRACT_QTY NUMBER(11,3) NOT NULL,
COUPON_RATE NUMBER(6,3) NOT NULL,
PRINCIPAL_FACTOR NUMBER(9,8) NOT NULL,
PRICE_FACTOR NUMBER(10,5) NOT NULL,
STRIKE_PRICE NUMBER(13,5) NOT NULL,
MARKET_PRICE NUMBER(13,5) NOT NULL,
UNIT_OF_TRADE NUMBER(8,0) NOT NULL,
SOURCE_CODE CHAR(1) NOT NULL,
STRIKE_CURRENCY CHAR(3) NOT NULL,
CONTRACT_QTY NUMBER(16,8) NOT NULL,
SHARES_PER NUMBER(16,8) NOT NULL,
MINUS_ZERO CHAR(2) NOT NULL,
SECURITY_TYPE_CODE CHAR(1) NOT NULL,
PRICE_DATE CHAR(8) NOT NULL,
DEL CHAR(1) NOT NULL,
INDUSTRY CHAR(2) NOT NULL,
SEDOL CHAR(12) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
UNDER_ADP_NUMBER CHAR(7) NOT NULL,
ADP_SECTYPE CHAR(7) NOT NULL,
MAINT_PCT NUMBER(3,2) NOT NULL,
OPTION_PCT NUMBER(3,2) NOT NULL,
UNDER_PRICE NUMBER(13,5) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_SMAWORK (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
TYPE CHAR(1) NOT NULL,
TAX_ID CHAR(11) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
OLD_ACCOUNT CHAR(9) NOT NULL,
RR CHAR(8) NOT NULL,
CURRENCY_CODE CHAR(3) NOT NULL,
PRINT_STATUS CHAR(3) NOT NULL,
NA_STATUS CHAR(1) NOT NULL,
REQUEST_PRINT CHAR(1) NOT NULL,
ACTIVITY CHAR(1) NOT NULL,
MARGIN_ACCOUNT CHAR(1) NOT NULL,
ACTIVE_VENDOR CHAR(1) NOT NULL,
TEFRA CHAR(1) NOT NULL,
DAY_TRADE CHAR(1) NOT NULL,
PROCEEDS_INSTRUCTION CHAR(1) NOT NULL,
SECURITIES_INSTRUCTION CHAR(1) NOT NULL,
INCOME_INSTRUCTION CHAR(1) NOT NULL,
COD_PRINT CHAR(1) NOT NULL,
MARGIN_AGREEMENT CHAR(1) NOT NULL,
OPTION_AGREEMENT CHAR(1) NOT NULL,
OPTION_BUY_CALLS CHAR(1) NOT NULL,
OPTION_BUY_PUTS CHAR(1) NOT NULL,
OPTION_WRITE_COVERED_CALLS CHAR(1) NOT NULL,
OPTION_WRITE_UNCOVERED_CALLS CHAR(1) NOT NULL,
OPTION_WRITE_COVERED_PUTS CHAR(1) NOT NULL,
OPTION_WRITE_UNCOVERED_PUTS CHAR(1) NOT NULL,
OPTION_SPREADS CHAR(1) NOT NULL,
OPTION_COMBINATIONS CHAR(1) NOT NULL,
LAST_ACTIVE_DATE CHAR(8) NOT NULL,
LAST_SMA_CHANGE CHAR(8) NOT NULL,
LAST_TRADE_DATE CHAR(8) NOT NULL,
PERCENT_EQUITY NUMBER(5,2) NOT NULL,
MARGIN_PERCENT NUMBER(5,2) NOT NULL,
NAKED NUMBER(5,0) NOT NULL,
SPREADS NUMBER(5,0) NOT NULL,
ACTIVE_TYPE1 CHAR(1) NOT NULL,
ACTIVE_TYPE2 CHAR(1) NOT NULL,
ACTIVE_TYPE3 CHAR(1) NOT NULL,
ACTIVE_TYPE4 CHAR(1) NOT NULL,
ACTIVE_TYPE5 CHAR(1) NOT NULL,
ACTIVE_TYPE6 CHAR(1) NOT NULL,
ACTIVE_TYPE7 CHAR(1) NOT NULL,
ACTIVE_TYPE8 CHAR(1) NOT NULL,
ACTIVE_TYPE9 CHAR(1) NOT NULL,
ACTIVE_TYPE10 CHAR(1) NOT NULL,
ACTIVE_TYPE11 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE1 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE2 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE3 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE4 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE5 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE6 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE7 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE8 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE9 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE10 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE11 CHAR(1) NOT NULL,
LONG_VALUE_TYPE1 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE2 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE3 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE4 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE5 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE6 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE7 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE8 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE9 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE10 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE11 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE1 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE2 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE3 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE4 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE5 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE6 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE7 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE8 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE9 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE10 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE11 NUMBER(17,2) NOT NULL,
CASH_AVAILABLE NUMBER(17,2) NOT NULL,
BUYING_POWER NUMBER(17,2) NOT NULL,
SMA NUMBER(17,2) NOT NULL,
SMA_TRADES NUMBER(17,2) NOT NULL,
SMA_BOOKKEEPING NUMBER(17,2) NOT NULL,
SMA_BOOKKEEPING_CREDIT NUMBER(17,2) NOT NULL,
SMA_ADJUST NUMBER(17,2) NOT NULL,
SMA_XS NUMBER(17,2) NOT NULL,
PRIOR_SMA NUMBER(17,2) NOT NULL,
HOUSE_XS NUMBER(17,2) NOT NULL,
EXCHANGE_XS NUMBER(17,2) NOT NULL,
FEDERAL_XS NUMBER(17,2) NOT NULL,
TODAY_CALL NUMBER(17,2) NOT NULL,
MARGIN_AVAILABLE NUMBER(17,2) NOT NULL,
FREE_VALUE NUMBER(17,2) NOT NULL,
MAX_FREE NUMBER(17,2) NOT NULL,
NAKED_VALUE NUMBER(17,2) NOT NULL,
OPTION_LONG_VALUE NUMBER(17,2) NOT NULL,
OPTION_SHORT_VALUE NUMBER(17,2) NOT NULL,
EQUITY NUMBER(17,2) NOT NULL,
TRUE_EQUITY NUMBER(17,2) NOT NULL,
OPTION_REQUIREMENT NUMBER(17,2) NOT NULL,
ADDITIONAL_REQUIREMENT NUMBER(17,2) NOT NULL,
PRIOR_DATE_BUYING_POWER NUMBER(17,2) NOT NULL,
COMBINED_SD_BALANCE NUMBER(17,2) NOT NULL,
SWEEP_TYPE_CASH NUMBER(17,2) NOT NULL,
SWEEP_TYPE_MARGIN NUMBER(17,2) NOT NULL,
OPENING_FREE_VALUE NUMBER(17,2) NOT NULL,
AGED_CHECKS NUMBER(17,2) NOT NULL,
INTEREST_BALANCE NUMBER(17,2) NOT NULL,
TOTAL_FREE_CASH NUMBER(17,2) NOT NULL,
CASH_CASH_AVAILABLE NUMBER(17,2) NOT NULL,
MARGIN_CASH_AVAILABLE NUMBER(17,2) NOT NULL,
NON_PURPOSE_LOAN_HOUSE_XS NUMBER(17,2) NOT NULL,
NON_PURPOSE_LOAN_EXCHANGE_XS NUMBER(17,2) NOT NULL,
ONLINE_MARGIN_EQUITY NUMBER(17,2) NOT NULL,
ONLINE_FEDERAL_STOCKS NUMBER(17,2) NOT NULL,
ONLINE_EXCHANGE_STOCKS NUMBER(17,2) NOT NULL,
ONLINE_HOUSE_STOCKS NUMBER(17,2) NOT NULL,
ONLINE_EXCHANGE_CONC NUMBER(17,2) NOT NULL,
ONLINE_FEDERAL_OPTIONS NUMBER(17,2) NOT NULL,
ONLINE_EXCHANGE_OPTIONS NUMBER(17,2) NOT NULL,
ONLINE_CALL_EXTENSION NUMBER(17,2) NOT NULL,
ONLINE_MTD_BOND_INTEREST NUMBER(17,2) NOT NULL,
ONLINE_MTD_CREDIT_INTEREST NUMBER(17,2) NOT NULL,
ONLINE_MTD_MARGIN_INTEREST NUMBER(17,2) NOT NULL,
ONLINE_ASOF_MMDD CHAR(4) NOT NULL,
ONLINE_FED_CALL_MMDD CHAR(4) NOT NULL,
ONLINE_EXCHANGE_CALL_MMDD CHAR(4) NOT NULL,
ONLINE_EXTENSION_CALL_MMDD CHAR(4) NOT NULL,
ONLINE_HOUSE_CALL_MMDD CHAR(4) NOT NULL,
WHEN_ISSUE_BALANCE_CASH NUMBER(17,2) NOT NULL,
WHEN_ISSUE_BALANCE_MARGIN NUMBER(17,2) NOT NULL,
CASH_HOUSE_XS NUMBER(17,2) NOT NULL,
MARGIN_HOUSE_XS NUMBER(17,2) NOT NULL,
CASH_EXCHANGE_XS NUMBER(17,2) NOT NULL,
MARGIN_EXCHANGE_XS NUMBER(17,2) NOT NULL,
WHEN_ISSUE_DEPOSITS NUMBER(17,2) NOT NULL,
COMBINED CHAR(1) NOT NULL,
CITIZENSHIP CHAR(2) NOT NULL,
SWEEP CHAR(1) NOT NULL,
ACTIVE_FUND CHAR(2) NOT NULL,
ACTIVE_BALANCE NUMBER(17,2) NOT NULL,
FOREIGN_CURRENCY_ACCOUNT CHAR(1) NOT NULL,
GROUP_15C3 CHAR(2) NOT NULL,
WHEN_ISSUE_BALANCE_SHORT NUMBER(17,2) NOT NULL,
ACCOUNT_GROUP CHAR(4) NOT NULL,
ACATS CHAR(1) NOT NULL,
MARGIN_TD_BALANCE NUMBER(17,2) NOT NULL,
USERID CHAR(10) NOT NULL,
COMPANY CHAR(4) NOT NULL,
COMBINED_TD_BALANCE NUMBER(17,2) NOT NULL,
UNP_SHT_POS_IND CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_SMAWORK_M2 (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
TYPE CHAR(1) NOT NULL,
TAX_ID CHAR(11) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
OLD_ACCOUNT CHAR(9) NOT NULL,
RR CHAR(8) NOT NULL,
CURRENCY_CODE CHAR(3) NOT NULL,
PRINT_STATUS CHAR(3) NOT NULL,
NA_STATUS CHAR(1) NOT NULL,
REQUEST_PRINT CHAR(1) NOT NULL,
ACTIVITY CHAR(1) NOT NULL,
MARGIN_ACCOUNT CHAR(1) NOT NULL,
ACTIVE_VENDOR CHAR(1) NOT NULL,
TEFRA CHAR(1) NOT NULL,
DAY_TRADE CHAR(1) NOT NULL,
PROCEEDS_INSTRUCTION CHAR(1) NOT NULL,
SECURITIES_INSTRUCTION CHAR(1) NOT NULL,
INCOME_INSTRUCTION CHAR(1) NOT NULL,
COD_PRINT CHAR(1) NOT NULL,
MARGIN_AGREEMENT CHAR(1) NOT NULL,
OPTION_AGREEMENT CHAR(1) NOT NULL,
OPTION_BUY_CALLS CHAR(1) NOT NULL,
OPTION_BUY_PUTS CHAR(1) NOT NULL,
OPTION_WRITE_COVERED_CALLS CHAR(1) NOT NULL,
OPTION_WRITE_UNCOVERED_CALLS CHAR(1) NOT NULL,
OPTION_WRITE_COVERED_PUTS CHAR(1) NOT NULL,
OPTION_WRITE_UNCOVERED_PUTS CHAR(1) NOT NULL,
OPTION_SPREADS CHAR(1) NOT NULL,
OPTION_COMBINATIONS CHAR(1) NOT NULL,
LAST_ACTIVE_DATE CHAR(8) NOT NULL,
LAST_SMA_CHANGE CHAR(8) NOT NULL,
LAST_TRADE_DATE CHAR(8) NOT NULL,
PERCENT_EQUITY NUMBER(5,2) NOT NULL,
MARGIN_PERCENT NUMBER(5,2) NOT NULL,
NAKED NUMBER(5,0) NOT NULL,
SPREADS NUMBER(5,0) NOT NULL,
ACTIVE_TYPE1 CHAR(1) NOT NULL,
ACTIVE_TYPE2 CHAR(1) NOT NULL,
ACTIVE_TYPE3 CHAR(1) NOT NULL,
ACTIVE_TYPE4 CHAR(1) NOT NULL,
ACTIVE_TYPE5 CHAR(1) NOT NULL,
ACTIVE_TYPE6 CHAR(1) NOT NULL,
ACTIVE_TYPE7 CHAR(1) NOT NULL,
ACTIVE_TYPE8 CHAR(1) NOT NULL,
ACTIVE_TYPE9 CHAR(1) NOT NULL,
ACTIVE_TYPE10 CHAR(1) NOT NULL,
ACTIVE_TYPE11 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE1 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE2 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE3 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE4 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE5 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE6 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE7 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE8 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE9 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE10 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE11 CHAR(1) NOT NULL,
LONG_VALUE_TYPE1 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE2 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE3 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE4 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE5 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE6 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE7 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE8 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE9 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE10 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE11 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE1 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE2 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE3 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE4 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE5 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE6 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE7 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE8 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE9 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE10 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE11 NUMBER(17,2) NOT NULL,
CASH_AVAILABLE NUMBER(17,2) NOT NULL,
BUYING_POWER NUMBER(17,2) NOT NULL,
SMA NUMBER(17,2) NOT NULL,
SMA_TRADES NUMBER(17,2) NOT NULL,
SMA_BOOKKEEPING NUMBER(17,2) NOT NULL,
SMA_BOOKKEEPING_CREDIT NUMBER(17,2) NOT NULL,
SMA_ADJUST NUMBER(17,2) NOT NULL,
SMA_XS NUMBER(17,2) NOT NULL,
PRIOR_SMA NUMBER(17,2) NOT NULL,
HOUSE_XS NUMBER(17,2) NOT NULL,
EXCHANGE_XS NUMBER(17,2) NOT NULL,
FEDERAL_XS NUMBER(17,2) NOT NULL,
TODAY_CALL NUMBER(17,2) NOT NULL,
MARGIN_AVAILABLE NUMBER(17,2) NOT NULL,
FREE_VALUE NUMBER(17,2) NOT NULL,
MAX_FREE NUMBER(17,2) NOT NULL,
NAKED_VALUE NUMBER(17,2) NOT NULL,
OPTION_LONG_VALUE NUMBER(17,2) NOT NULL,
OPTION_SHORT_VALUE NUMBER(17,2) NOT NULL,
EQUITY NUMBER(17,2) NOT NULL,
TRUE_EQUITY NUMBER(17,2) NOT NULL,
OPTION_REQUIREMENT NUMBER(17,2) NOT NULL,
ADDITIONAL_REQUIREMENT NUMBER(17,2) NOT NULL,
PRIOR_DATE_BUYING_POWER NUMBER(17,2) NOT NULL,
COMBINED_SD_BALANCE NUMBER(17,2) NOT NULL,
SWEEP_TYPE_CASH NUMBER(17,2) NOT NULL,
SWEEP_TYPE_MARGIN NUMBER(17,2) NOT NULL,
OPENING_FREE_VALUE NUMBER(17,2) NOT NULL,
AGED_CHECKS NUMBER(17,2) NOT NULL,
INTEREST_BALANCE NUMBER(17,2) NOT NULL,
TOTAL_FREE_CASH NUMBER(17,2) NOT NULL,
CASH_CASH_AVAILABLE NUMBER(17,2) NOT NULL,
MARGIN_CASH_AVAILABLE NUMBER(17,2) NOT NULL,
NON_PURPOSE_LOAN_HOUSE_XS NUMBER(17,2) NOT NULL,
NON_PURPOSE_LOAN_EXCHANGE_XS NUMBER(17,2) NOT NULL,
ONLINE_MARGIN_EQUITY NUMBER(17,2) NOT NULL,
ONLINE_FEDERAL_STOCKS NUMBER(17,2) NOT NULL,
ONLINE_EXCHANGE_STOCKS NUMBER(17,2) NOT NULL,
ONLINE_HOUSE_STOCKS NUMBER(17,2) NOT NULL,
ONLINE_EXCHANGE_CONC NUMBER(17,2) NOT NULL,
ONLINE_FEDERAL_OPTIONS NUMBER(17,2) NOT NULL,
ONLINE_EXCHANGE_OPTIONS NUMBER(17,2) NOT NULL,
ONLINE_CALL_EXTENSION NUMBER(17,2) NOT NULL,
ONLINE_MTD_BOND_INTEREST NUMBER(17,2) NOT NULL,
ONLINE_MTD_CREDIT_INTEREST NUMBER(17,2) NOT NULL,
ONLINE_MTD_MARGIN_INTEREST NUMBER(17,2) NOT NULL,
ONLINE_ASOF_MMDD CHAR(4) NOT NULL,
ONLINE_FED_CALL_MMDD CHAR(4) NOT NULL,
ONLINE_EXCHANGE_CALL_MMDD CHAR(4) NOT NULL,
ONLINE_EXTENSION_CALL_MMDD CHAR(4) NOT NULL,
ONLINE_HOUSE_CALL_MMDD CHAR(4) NOT NULL,
WHEN_ISSUE_BALANCE_CASH NUMBER(17,2) NOT NULL,
WHEN_ISSUE_BALANCE_MARGIN NUMBER(17,2) NOT NULL,
CASH_HOUSE_XS NUMBER(17,2) NOT NULL,
MARGIN_HOUSE_XS NUMBER(17,2) NOT NULL,
CASH_EXCHANGE_XS NUMBER(17,2) NOT NULL,
MARGIN_EXCHANGE_XS NUMBER(17,2) NOT NULL,
WHEN_ISSUE_DEPOSITS NUMBER(17,2) NOT NULL,
COMBINED CHAR(1) NOT NULL,
CITIZENSHIP CHAR(2) NOT NULL,
SWEEP CHAR(1) NOT NULL,
ACTIVE_FUND CHAR(2) NOT NULL,
ACTIVE_BALANCE NUMBER(17,2) NOT NULL,
FOREIGN_CURRENCY_ACCOUNT CHAR(1) NOT NULL,
GROUP_15C3 CHAR(2) NOT NULL,
WHEN_ISSUE_BALANCE_SHORT NUMBER(17,2) NOT NULL,
ACCOUNT_GROUP CHAR(4) NOT NULL,
ACATS CHAR(1) NOT NULL,
MARGIN_TD_BALANCE NUMBER(17,2) NOT NULL,
USERID CHAR(10) NOT NULL,
COMPANY CHAR(4) NOT NULL,
COMBINED_TD_BALANCE NUMBER(17,2) NOT NULL,
UNP_SHT_POS_IND CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_SM_SUPPLEMENT (
CUSIP CHAR(12) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SYMBOL CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
EXCHANGE CHAR(1) NOT NULL,
FINANCIAL_TIMES CHAR(1) NOT NULL,
MARGINABLE CHAR(1) NOT NULL,
TAX_EXEMPT CHAR(1) NOT NULL,
CALL_TYPE CHAR(1) NOT NULL,
MOODY_RATING CHAR(5) NOT NULL,
SP_RATING CHAR(5) NOT NULL,
AGE_SECURITY NUMBER(3,0) NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,
PAYMENT_PERIOD CHAR(1) NOT NULL,
EURO CHAR(1) NOT NULL,
COUNTRY_OF_ISSUE CHAR(5) NOT NULL,
DTC CHAR(1) NOT NULL,
EXP_LOC CHAR(2) NOT NULL,
SECTYPE_PUT_CALL CHAR(1) NOT NULL,
ISO_CURRENCY CHAR(3) NOT NULL,
MATURITY_DATE CHAR(8) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
INTEREST_PERIOD1 NUMBER(4,0) NOT NULL,
INTEREST_PERIOD2 NUMBER(4,0) NOT NULL,
INTEREST_PERIOD3 NUMBER(4,0) NOT NULL,
INTEREST_PERIOD4 NUMBER(4,0) NOT NULL,
PF_EFFECTIVE_DATE CHAR(6) NOT NULL,
DATED_DATE CHAR(8) NOT NULL,
FIRST_COUPON CHAR(8) NOT NULL,
CALL_DATE CHAR(8) NOT NULL,
PUT_DATE CHAR(8) NOT NULL,
REPLACEMENT_VALUE NUMBER(7,3) NOT NULL,
TEMP_CONTRACT_QTY NUMBER(11,3) NOT NULL,
COUPON_RATE NUMBER(6,3) NOT NULL,
PRINCIPAL_FACTOR NUMBER(9,8) NOT NULL,
PRICE_FACTOR NUMBER(10,5) NOT NULL,
STRIKE_PRICE NUMBER(13,5) NOT NULL,
MARKET_PRICE NUMBER(13,5) NOT NULL,
UNIT_OF_TRADE NUMBER(8,0) NOT NULL,
SOURCE_CODE CHAR(1) NOT NULL,
STRIKE_CURRENCY CHAR(3) NOT NULL,
CONTRACT_QTY NUMBER(16,8) NOT NULL,
SHARES_PER NUMBER(16,8) NOT NULL,
MINUS_ZERO CHAR(2) NOT NULL,
SECURITY_TYPE_CODE CHAR(1) NOT NULL,
PRICE_DATE CHAR(8) NOT NULL,
DEL CHAR(1) NOT NULL,
INDUSTRY CHAR(2) NOT NULL,
SEDOL CHAR(12) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
ADP_SECTYPE CHAR(7) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_SPECIAL_MARGIN (
BRBASE CHAR(8) NOT NULL,
TYPE CHAR(1) NOT NULL,
CUSIP CHAR(12) NOT NULL,
LS CHAR(1) NOT NULL,
QUANTITY FLOAT NOT NULL,
PRICE_FROM FLOAT NOT NULL,
PRICE_TO FLOAT NOT NULL,
PRICE_CURRENCY CHAR(3) NOT NULL,
HOUSE_PERCENT FLOAT NOT NULL,
NYSE_PERCENT FLOAT NOT NULL,
FED_PERCENT FLOAT NOT NULL,
HOUSE_HEDGE_PERCENT FLOAT NOT NULL,
HOUSE_SVB_PERCENT FLOAT NOT NULL,
HOUSE_NG_PERCENT FLOAT NOT NULL,
HOUSE_NAKED_PERCENT FLOAT NOT NULL,
MARGINABLE CHAR(1) NOT NULL,
INDUSTRY_CODE CHAR(2) NOT NULL,
COMMENT_LINE CHAR(30) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
USERID CHAR(10) NOT NULL,
LCDLCT DATE NOT NULL
)
GO
CREATE TABLE TBLMG_SPECIFIED_SL_ACCOUNTS (
CUSTOMER_CODE CHAR(2) NOT NULL,
ACCOUNT CHAR(9) NOT NULL,
SOURCE CHAR(1) NOT NULL,
FILLER CHAR(18) NOT NULL,
USERID CHAR(8) NOT NULL,
LCD CHAR(8) NOT NULL,
LCT CHAR(6) NOT NULL
)
GO
CREATE TABLE TBLMG_SPOT_RATES (
ISO CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
DESCRIPTION CHAR(30) NOT NULL,
RATE NUMBER(14,9) NOT NULL,
MULT_DIV CHAR(1) NOT NULL,
FACTOR NUMBER(4,0) NOT NULL,
COUNTRY CHAR(3) NOT NULL,
CCY CHAR(3) NOT NULL,
ADP_NUMBER CHAR(3) NOT NULL,
USERID CHAR(10) NOT NULL,
HOUSE_REQT FLOAT NOT NULL
)
GO
CREATE TABLE TBLMG_SR (
FIRM CHAR(4) NOT NULL,
CUSIP CHAR(12) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
OPENCLOSE CHAR(1) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PRICE_CURRENCY CHAR(3) NOT NULL,
RR CHAR(5) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,
ACATS CHAR(1) NOT NULL,
WHEN_ISSUE CHAR(1) NOT NULL,
GROUP_15C3 CHAR(2) NOT NULL,
UNDERLYING_PRICE_CURRENCY CHAR(3) NOT NULL,
DTC CHAR(1) NOT NULL,
PRINT_STATUS CHAR(1) NOT NULL,
ADR CHAR(1) NOT NULL,
MARGINABLE CHAR(1) NOT NULL,
ACTIVITY CHAR(1) NOT NULL,
BOND_RATING CHAR(4) NOT NULL,
DIVIDEND_ROUND_OUT CHAR(1) NOT NULL,
EXCHANGE CHAR(4) NOT NULL,
ASOF CHAR(1) NOT NULL,
MAINTENANCE_PCT CHAR(4) NOT NULL,
INSTRUCTION CHAR(1) NOT NULL,
SETTLEMENT_ACTIVITY_DATE CHAR(8) NOT NULL,
TRADE_DATE_ACTIVITY_DATE CHAR(8) NOT NULL,
PRICE_DATE CHAR(8) NOT NULL,
MATURITY_DATE CHAR(8) NOT NULL,
VOLUME NUMBER(9,0) NOT NULL,
TRADE_DATE_QTY NUMBER(17,4) NOT NULL,
SETTLEMENT_DATE_QTY NUMBER(17,4) NOT NULL,
SEG NUMBER(17,4) NOT NULL,
MEMO1 NUMBER(17,4) NOT NULL,
MEMO2 NUMBER(17,4) NOT NULL,
MEMO3 NUMBER(17,4) NOT NULL,
MEMO4 NUMBER(17,4) NOT NULL,
MEMO_LOCATION1 CHAR(4) NOT NULL,
MEMO_LOCATION2 CHAR(4) NOT NULL,
MEMO_LOCATION3 CHAR(4) NOT NULL,
MEMO_LOCATION4 CHAR(4) NOT NULL,
SPECIFIED_BANKLOAN_QTY NUMBER(17,4) NOT NULL,
BUY_QTY NUMBER(17,4) NOT NULL,
SELL_QTY NUMBER(17,4) NOT NULL,
WI_BUY_QTY NUMBER(17,4) NOT NULL,
WI_SELL_QTY NUMBER(17,4) NOT NULL,
SETTLEMENT_DATE_BUY_QTY NUMBER(17,4) NOT NULL,
SETTLEMENT_DATE_SELL_QTY NUMBER(17,4) NOT NULL,
SOLD_SEG_QTY NUMBER(17,4) NOT NULL,
SETTLE_TOMORROW_QTY NUMBER(17,4) NOT NULL,
RECEIVE_QTY NUMBER(17,4) NOT NULL,
DELIVER_QTY NUMBER(17,4) NOT NULL,
STOCK_DIVIDEND NUMBER(17,4) NOT NULL,
NEXT_SETTLE_DATE1 NUMBER(17,4) NOT NULL,
BUY_AMOUNT NUMBER(17,2) NOT NULL,
SELL_AMOUNT NUMBER(17,2) NOT NULL,
WI_BUY_AMOUNT NUMBER(17,2) NOT NULL,
WI_SELL_AMOUNT NUMBER(17,2) NOT NULL,
SETTLEMENT_DATE_BUY_AMOUNT NUMBER(17,2) NOT NULL,
SETTLEMENT_DATE_SELL_AMOUNT NUMBER(17,2) NOT NULL,
SOLD_SEG_AMOUNT NUMBER(17,2) NOT NULL,
SETTLE_TOMORROW_AMOUNT NUMBER(17,2) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
PRIOR_PRICE NUMBER(15,7) NOT NULL,
UNDERLYING_PRICE NUMBER(15,7) NOT NULL,
UNDERLYING_PRIOR_PRICE NUMBER(15,7) NOT NULL,
STRIKE NUMBER(15,7) NOT NULL,
CONVERSION NUMBER(15,7) NOT NULL,
TRADE_DATE_BALANCE NUMBER(17,2) NOT NULL,
SETTLEMENT_DATE_BALANCE NUMBER(17,2) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
SYMBOL CHAR(12) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
SP_RATING CHAR(3) NOT NULL,
PRICE_SOURCE CHAR(1) NOT NULL,
PRINCIPAL_FACTOR NUMBER(9,8) NOT NULL,
COMBINED_ACCOUNT_INDICATOR CHAR(1) NOT NULL,
SMA_TRANSACTION CHAR(4) NOT NULL,
FINANCIAL_TIMES CHAR(1) NOT NULL,
SEG_PREFERRED CHAR(1) NOT NULL,
TAX_EXEMPT CHAR(1) NOT NULL,
MEMO_ACTIVITY_DATE CHAR(8) NOT NULL,
QUANTITY_CURRENCY CHAR(3) NOT NULL,
MARGIN_SD_MARKET_VALUE NUMBER(17,2) NOT NULL,
FUND_SD_MARKET_VALUE NUMBER(17,2) NOT NULL,
STRIKE_CURRENCY CHAR(3) NOT NULL,
SHARES_PER NUMBER(15,7) NOT NULL,
ACCRUED_BOND_INTEREST NUMBER(17,2) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
UNDER_ADP_NUMBER CHAR(7) NOT NULL,
SORT_MV NUMBER(10,0) NOT NULL,
INDUSTRY CHAR(2) NOT NULL,
USERID CHAR(10) NOT NULL,
COMPANY CHAR(4) NOT NULL
)
GO
CREATE TABLE TBLMG_SR_PROD (
FIRM CHAR(4) NOT NULL,
CUSIP CHAR(12) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
OPENCLOSE CHAR(1) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
PRICE_CURRENCY CHAR(3) NOT NULL,
RR CHAR(5) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,
ACATS CHAR(1) NOT NULL,
WHEN_ISSUE CHAR(1) NOT NULL,
GROUP_15C3 CHAR(2) NOT NULL,
UNDERLYING_PRICE_CURRENCY CHAR(3) NOT NULL,
DTC CHAR(1) NOT NULL,
PRINT_STATUS CHAR(1) NOT NULL,
ADR CHAR(1) NOT NULL,
MARGINABLE CHAR(1) NOT NULL,
ACTIVITY CHAR(1) NOT NULL,
BOND_RATING CHAR(4) NOT NULL,
DIVIDEND_ROUND_OUT CHAR(1) NOT NULL,
EXCHANGE CHAR(4) NOT NULL,
ASOF CHAR(1) NOT NULL,
MAINTENANCE_PCT CHAR(4) NOT NULL,
INSTRUCTION CHAR(1) NOT NULL,
SETTLEMENT_ACTIVITY_DATE CHAR(8) NOT NULL,
TRADE_DATE_ACTIVITY_DATE CHAR(8) NOT NULL,
PRICE_DATE CHAR(8) NOT NULL,
MATURITY_DATE CHAR(8) NOT NULL,
VOLUME NUMBER(9,0) NOT NULL,
TRADE_DATE_QTY NUMBER(17,4) NOT NULL,
SETTLEMENT_DATE_QTY NUMBER(17,4) NOT NULL,
SEG NUMBER(17,4) NOT NULL,
MEMO1 NUMBER(17,4) NOT NULL,
MEMO2 NUMBER(17,4) NOT NULL,
MEMO3 NUMBER(17,4) NOT NULL,
MEMO4 NUMBER(17,4) NOT NULL,
MEMO_LOCATION1 CHAR(4) NOT NULL,
MEMO_LOCATION2 CHAR(4) NOT NULL,
MEMO_LOCATION3 CHAR(4) NOT NULL,
MEMO_LOCATION4 CHAR(4) NOT NULL,
SPECIFIED_BANKLOAN_QTY NUMBER(17,4) NOT NULL,
BUY_QTY NUMBER(17,4) NOT NULL,
SELL_QTY NUMBER(17,4) NOT NULL,
WI_BUY_QTY NUMBER(17,4) NOT NULL,
WI_SELL_QTY NUMBER(17,4) NOT NULL,
SETTLEMENT_DATE_BUY_QTY NUMBER(17,4) NOT NULL,
SETTLEMENT_DATE_SELL_QTY NUMBER(17,4) NOT NULL,
SOLD_SEG_QTY NUMBER(17,4) NOT NULL,
SETTLE_TOMORROW_QTY NUMBER(17,4) NOT NULL,
RECEIVE_QTY NUMBER(17,4) NOT NULL,
DELIVER_QTY NUMBER(17,4) NOT NULL,
STOCK_DIVIDEND NUMBER(17,4) NOT NULL,
NEXT_SETTLE_DATE1 NUMBER(17,4) NOT NULL,
BUY_AMOUNT NUMBER(17,2) NOT NULL,
SELL_AMOUNT NUMBER(17,2) NOT NULL,
WI_BUY_AMOUNT NUMBER(17,2) NOT NULL,
WI_SELL_AMOUNT NUMBER(17,2) NOT NULL,
SETTLEMENT_DATE_BUY_AMOUNT NUMBER(17,2) NOT NULL,
SETTLEMENT_DATE_SELL_AMOUNT NUMBER(17,2) NOT NULL,
SOLD_SEG_AMOUNT NUMBER(17,2) NOT NULL,
SETTLE_TOMORROW_AMOUNT NUMBER(17,2) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
PRIOR_PRICE NUMBER(15,7) NOT NULL,
UNDERLYING_PRICE NUMBER(15,7) NOT NULL,
UNDERLYING_PRIOR_PRICE NUMBER(15,7) NOT NULL,
STRIKE NUMBER(15,7) NOT NULL,
CONVERSION NUMBER(15,7) NOT NULL,
TRADE_DATE_BALANCE NUMBER(17,2) NOT NULL,
SETTLEMENT_DATE_BALANCE NUMBER(17,2) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
SYMBOL CHAR(12) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
SP_RATING CHAR(3) NOT NULL,
PRICE_SOURCE CHAR(1) NOT NULL,
PRINCIPAL_FACTOR NUMBER(9,8) NOT NULL,
COMBINED_ACCOUNT_INDICATOR CHAR(1) NOT NULL,
SMA_TRANSACTION CHAR(4) NOT NULL,
FINANCIAL_TIMES CHAR(1) NOT NULL,
SEG_PREFERRED CHAR(1) NOT NULL,
TAX_EXEMPT CHAR(1) NOT NULL,
MEMO_ACTIVITY_DATE CHAR(8) NOT NULL,
QUANTITY_CURRENCY CHAR(3) NOT NULL,
MARGIN_SD_MARKET_VALUE NUMBER(17,2) NOT NULL,
FUND_SD_MARKET_VALUE NUMBER(17,2) NOT NULL,
STRIKE_CURRENCY CHAR(3) NOT NULL,
SHARES_PER NUMBER(15,7) NOT NULL,
ACCRUED_BOND_INTEREST NUMBER(17,2) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
UNDER_ADP_NUMBER CHAR(7) NOT NULL,
SORT_MV NUMBER(10,0) NOT NULL,
INDUSTRY CHAR(2) NOT NULL,
USERID CHAR(10) NOT NULL,
COMPANY CHAR(4) NOT NULL
)
GO
CREATE TABLE TBLMG_STATUS_EXTRACT_ACCTS (
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_STATUS_RANGES (
FROM_ACCOUNT CHAR(7) NOT NULL,
TO_ACCOUNT CHAR(7) NOT NULL,
FUND_MGMT CHAR(1) NOT NULL,
BKR_DOM CHAR(6) NOT NULL,
BKR_FGN CHAR(6) NOT NULL,
FILLER1 CHAR(32) NOT NULL,
USERID CHAR(8) NOT NULL,
LCD CHAR(8) NOT NULL,
LCT CHAR(6) NOT NULL,
FILLER2 CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_SW_CONVERSION (
BRBASE CHAR(8) NOT NULL,
TYPE CHAR(1) NOT NULL,
TAX_ID CHAR(11) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
OLD_ACCOUNT CHAR(8) NOT NULL,
RR CHAR(8) NOT NULL,
CURRENCY_CODE CHAR(3) NOT NULL,
PRINT_STATUS CHAR(3) NOT NULL,
NA_STATUS CHAR(1) NOT NULL,
REQUEST_PRINT CHAR(1) NOT NULL,
ACTIVITY CHAR(1) NOT NULL,
MARGIN_ACCOUNT CHAR(1) NOT NULL,
ACTIVE_VENDOR CHAR(1) NOT NULL,
TEFRA CHAR(1) NOT NULL,
DAY_TRADE CHAR(1) NOT NULL,
PROCEEDS_INSTRUCTION CHAR(1) NOT NULL,
SECURITIES_INSTRUCTION CHAR(1) NOT NULL,
INCOME_INSTRUCTION CHAR(1) NOT NULL,
COD_PRINT CHAR(1) NOT NULL,
MARGIN_AGREEMENT CHAR(1) NOT NULL,
OPTION_AGREEMENT CHAR(1) NOT NULL,
OPTION_BUY_CALLS CHAR(1) NOT NULL,
OPTION_BUY_PUTS CHAR(1) NOT NULL,
OPTION_WRITE_COVERED_CALLS CHAR(1) NOT NULL,
OPTION_WRITE_UNCOVERED_CALLS CHAR(1) NOT NULL,
OPTION_WRITE_COVERED_PUTS CHAR(1) NOT NULL,
OPTION_WRITE_UNCOVERED_PUTS CHAR(1) NOT NULL,
OPTION_SPREADS CHAR(1) NOT NULL,
OPTION_COMBINATIONS CHAR(1) NOT NULL,
LAST_ACTIVE_DATE CHAR(8) NOT NULL,
LAST_SMA_CHANGE CHAR(8) NOT NULL,
LAST_TRADE_DATE CHAR(8) NOT NULL,
PERCENT_EQUITY NUMBER(3,3) NOT NULL,
MARGIN_PERCENT NUMBER(3,3) NOT NULL,
NAKED NUMBER(5,0) NOT NULL,
SPREADS NUMBER(5,0) NOT NULL,
ACTIVE_TYPE1 CHAR(1) NOT NULL,
ACTIVE_TYPE2 CHAR(1) NOT NULL,
ACTIVE_TYPE3 CHAR(1) NOT NULL,
ACTIVE_TYPE4 CHAR(1) NOT NULL,
ACTIVE_TYPE5 CHAR(1) NOT NULL,
ACTIVE_TYPE6 CHAR(1) NOT NULL,
ACTIVE_TYPE7 CHAR(1) NOT NULL,
ACTIVE_TYPE8 CHAR(1) NOT NULL,
ACTIVE_TYPE9 CHAR(1) NOT NULL,
ACTIVE_TYPE10 CHAR(1) NOT NULL,
ACTIVE_TYPE11 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE1 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE2 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE3 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE4 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE5 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE6 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE7 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE8 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE9 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE10 CHAR(1) NOT NULL,
UNPRICED_POSITION_TYPE11 CHAR(1) NOT NULL,
LONG_VALUE_TYPE1 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE2 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE3 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE4 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE5 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE6 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE7 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE8 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE9 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE10 NUMBER(17,2) NOT NULL,
LONG_VALUE_TYPE11 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE1 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE2 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE3 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE4 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE5 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE6 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE7 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE8 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE9 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE10 NUMBER(17,2) NOT NULL,
SHORT_VALUE_TYPE11 NUMBER(17,2) NOT NULL,
CASH_AVAILABLE NUMBER(17,2) NOT NULL,
BUYING_POWER NUMBER(17,2) NOT NULL,
SMA NUMBER(17,2) NOT NULL,
SMA_TRADES NUMBER(17,2) NOT NULL,
SMA_BOOKKEEPING NUMBER(17,2) NOT NULL,
SMA_BOOKKEEPING_CREDIT NUMBER(17,2) NOT NULL,
SMA_ADJUST NUMBER(17,2) NOT NULL,
SMA_XS NUMBER(17,2) NOT NULL,
PRIOR_SMA NUMBER(17,2) NOT NULL,
HOUSE_XS NUMBER(17,2) NOT NULL,
EXCHANGE_XS NUMBER(17,2) NOT NULL,
FEDERAL_XS NUMBER(17,2) NOT NULL,
TODAY_CALL NUMBER(17,2) NOT NULL,
MARGIN_AVAILABLE NUMBER(17,2) NOT NULL,
FREE_VALUE NUMBER(17,2) NOT NULL,
MAX_FREE NUMBER(17,2) NOT NULL,
NAKED_VALUE NUMBER(17,2) NOT NULL,
OPTION_LONG_VALUE NUMBER(17,2) NOT NULL,
OPTION_SHORT_VALUE NUMBER(17,2) NOT NULL,
EQUITY NUMBER(17,2) NOT NULL,
TRUE_EQUITY NUMBER(17,2) NOT NULL,
OPTION_REQUIREMENT NUMBER(17,2) NOT NULL,
ADDITIONAL_REQUIREMENT NUMBER(17,2) NOT NULL,
PRIOR_DATE_BUYING_POWER NUMBER(17,2) NOT NULL,
COMBINED_SD_BALANCE NUMBER(17,2) NOT NULL,
SWEEP_TYPE_CASH NUMBER(17,2) NOT NULL,
SWEEP_TYPE_MARGIN NUMBER(17,2) NOT NULL,
OPENING_FREE_VALUE NUMBER(17,2) NOT NULL,
AGED_CHECKS NUMBER(17,2) NOT NULL,
INTEREST_BALANCE NUMBER(17,2) NOT NULL,
TOTAL_FREE_CASH NUMBER(17,2) NOT NULL,
CASH_CASH_AVAILABLE NUMBER(17,2) NOT NULL,
MARGIN_CASH_AVAILABLE NUMBER(17,2) NOT NULL,
NON_PURPOSE_LOAN_HOUSE_XS NUMBER(17,2) NOT NULL,
NON_PURPOSE_LOAN_EXCHANGE_XS NUMBER(17,2) NOT NULL,
ONLINE_MARGIN_EQUITY NUMBER(17,2) NOT NULL,
ONLINE_FEDERAL_STOCKS NUMBER(17,2) NOT NULL,
ONLINE_EXCHANGE_STOCKS NUMBER(17,2) NOT NULL,
ONLINE_HOUSE_STOCKS NUMBER(17,2) NOT NULL,
ONLINE_EXCHANGE_CONC NUMBER(17,2) NOT NULL,
ONLINE_FEDERAL_OPTIONS NUMBER(17,2) NOT NULL,
ONLINE_EXCHANGE_OPTIONS NUMBER(17,2) NOT NULL,
ONLINE_CALL_EXTENSION NUMBER(17,2) NOT NULL,
ONLINE_MTD_BOND_INTEREST NUMBER(17,2) NOT NULL,
ONLINE_MTD_CREDIT_INTEREST NUMBER(17,2) NOT NULL,
ONLINE_MTD_MARGIN_INTEREST NUMBER(17,2) NOT NULL,
ONLINE_ASOF_MMDD CHAR(4) NOT NULL,
ONLINE_FED_CALL_MMDD CHAR(4) NOT NULL,
ONLINE_EXCHANGE_CALL_MMDD CHAR(4) NOT NULL,
ONLINE_EXTENSION_CALL_MMDD CHAR(4) NOT NULL,
ONLINE_HOUSE_CALL_MMDD CHAR(4) NOT NULL,
WHEN_ISSUE_BALANCE_CASH NUMBER(17,2) NOT NULL,
WHEN_ISSUE_BALANCE_MARGIN NUMBER(17,2) NOT NULL,
CASH_HOUSE_XS NUMBER(17,2) NOT NULL,
MARGIN_HOUSE_XS NUMBER(17,2) NOT NULL,
CASH_EXCHANGE_XS NUMBER(17,2) NOT NULL,
MARGIN_EXCHANGE_XS NUMBER(17,2) NOT NULL,
WHEN_ISSUE_DEPOSITS NUMBER(17,2) NOT NULL,
COMBINED CHAR(1) NOT NULL,
CITIZENSHIP CHAR(2) NOT NULL,
SWEEP CHAR(1) NOT NULL,
ACTIVE_FUND CHAR(2) NOT NULL,
ACTIVE_BALANCE NUMBER(17,2) NOT NULL,
FOREIGN_CURRENCY_ACCOUNT CHAR(1) NOT NULL,
GROUP_15C3 CHAR(2) NOT NULL,
WHEN_ISSUE_BALANCE_SHORT NUMBER(17,2) NOT NULL,
ACCOUNT_GROUP CHAR(4) NOT NULL,
USERID CHAR(10) NOT NULL,
LCDLCT DATE NOT NULL
)
GO
CREATE TABLE TBLMG_TB (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
CURRENCY CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
RR CHAR(8) NOT NULL,
TRADE_DATE CHAR(8) NOT NULL,
SETTLEMENT_DATE CHAR(8) NOT NULL,
TRADE_DATE_ACTIVITY_DATE CHAR(8) NOT NULL,
SETTLEMENT_DATE_ACTIVITY_DATE CHAR(8) NOT NULL,
TRADE_DATE_BALANCE NUMBER(17,2) NOT NULL,
SETTLEMENT_DATE_BALANCE NUMBER(17,2) NOT NULL,
SMA_ADJUSTMENT NUMBER(17,2) NOT NULL,
MARGIN_CASH_ACTIVITY NUMBER(17,2) NOT NULL,
PRINT_STATUS CHAR(1) NOT NULL,
OFFICE CHAR(4) NOT NULL,
SMA_REPLACE CHAR(1) NOT NULL,
COMBINED_ACCOUNT_INDICATOR CHAR(1) NOT NULL,
COMBINED_ACCOUNT CHAR(9) NOT NULL,
DVP_INDICATOR CHAR(1) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_TRACKED_CUSIPS (
FIRM CHAR(4) NOT NULL,
CUSIP CHAR(12) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
ENTRY_DATE CHAR(8) NOT NULL,
ENTRY_DATE_P30 CHAR(8) NOT NULL,
COMMENT_LINE CHAR(50) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_UNDERCUSIP (
CUSIP CHAR(12) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,
EXPIRATION_DATE CHAR(8) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
STRIKE_PRICE NUMBER(15,7) NOT NULL,
UNDERLYING_SHARES NUMBER(17,4) NOT NULL,
USERID CHAR(10) NOT NULL,
EURO_AMERICAN_STYLE CHAR(1) NOT NULL,
EURO_AMERICAN_STYLE2 CHAR(1) NOT NULL,
FROMBRBASE CHAR(9) NOT NULL,
TOBRBASE CHAR(9) NOT NULL,
UNDERLYING_SYMBOL CHAR(12) NULL
)
GO
CREATE TABLE TBLMG_UNMATCHED_REQTS (
BRBASE CHAR(9) NOT NULL,
CUSIP CHAR(12) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
UNDER_SYM CHAR(10) NOT NULL,
CPORT_REQT NUMBER(17,2) NOT NULL
)
GO
CREATE TABLE TBLMG_UNMATCHED_REQTS_M2 (
BRBASE CHAR(9) NOT NULL,
CUSIP CHAR(12) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
UNDER_SYM CHAR(10) NOT NULL,
CPORT_REQT NUMBER(17,2) NOT NULL
)
GO
CREATE TABLE TBLMG_USER_ACCESS (
FIRM CHAR(4) NOT NULL,
USER_ID CHAR(15) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
DISPLAY_NAME CHAR(20) NOT NULL,
PASSWORD CHAR(10) NOT NULL,
INITIAL_MENU CHAR(20) NOT NULL,
ACCESS_CODES CHAR(150) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_USER_MENUS_FOR_WEB (
USER_ACCESS_COLUMN NUMBER(3,0) NOT NULL,
MENU_HIERARCHY CHAR(50) NOT NULL,
MENU_NAME CHAR(50) NOT NULL,
BUTTON_CAPTION CHAR(50) NOT NULL,
BUTTON_SEQ NUMBER(3,0) NOT NULL,
BUTTON_TAG CHAR(50) NOT NULL,
GROUP_LEVEL CHAR(1) NOT NULL,
DISABLE CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_WATCHLIST_ACCOUNTS (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
USERID CHAR(8) NOT NULL,
REASON CHAR(8) NOT NULL,
DEPARTMENT CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_WHATIF_FLEX (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
CUSIP CHAR(12) NOT NULL,
LS CHAR(1) NOT NULL,
PRICE_FROM FLOAT NOT NULL,
PRICE_TO FLOAT NOT NULL,
QUANTITY_FROM FLOAT NOT NULL,
QUANTITY_TO FLOAT NOT NULL,
CUSIP2 CHAR(12) NOT NULL,
CNTRY_OF_ISSUE CHAR(3) NOT NULL,
EFFECTIVE_DATE_FROM DATE NOT NULL,
EFFECTIVE_DATE_TO DATE NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SCENARIO_ID NUMBER(22,0) NOT NULL,
PRICE_CURRENCY CHAR(3) NOT NULL,
SHORTNAME CHAR(20) NOT NULL,
EXP_DATE DATE NOT NULL,
MARGINABLE CHAR(1) NOT NULL,
OPTION_PERCENT_TYPE CHAR(1) NOT NULL,
HSE_TO_EXCHANGE CHAR(1) NOT NULL,
FED_TO_EXCHANGE CHAR(1) NOT NULL,
SECNO CHAR(12) NOT NULL,
BOND_RATINGS_CATEGORY CHAR(11) NOT NULL,
HOUSE_PERCENT NUMBER(9,6) NOT NULL,
NYSE_PERCENT NUMBER(9,6) NOT NULL,
FED_PERCENT NUMBER(9,6) NOT NULL,
HOUSE_MIN_PERCENT NUMBER(9,6) NOT NULL,
NYSE_MIN_PERCENT NUMBER(9,6) NOT NULL,
FED_MIN_PERCENT NUMBER(9,6) NOT NULL,
HOUSE_PRINC_PERCENT NUMBER(9,6) NOT NULL,
NYSE_PRINC_PERCENT NUMBER(9,6) NOT NULL,
FED_PRINC_PERCENT NUMBER(9,6) NOT NULL,
CONC_PERCENT NUMBER(9,6) NOT NULL,
HAIRCUT_PERCENT NUMBER(9,6) NOT NULL,
DOLLAR_PER_SHARE NUMBER(15,7) NOT NULL,
COMMENT_LINE CHAR(30) NOT NULL,
APPROVAL1 CHAR(10) NOT NULL,
APPROVAL2 CHAR(10) NOT NULL,
PERCENT_OF_SHARES NUMBER(9,6) NOT NULL,
PREV_FED_PCT NUMBER(9,6) NOT NULL,
NYSE_NO_MGN CHAR(1) NOT NULL,
RESTRICTED CHAR(1) NOT NULL,
BRBASE_INDICATOR CHAR(1) NOT NULL,
CUSIP_INDICATOR CHAR(1) NOT NULL,
USERID CHAR(15) NOT NULL
)
GO
CREATE TABLE TBLMG_WHATIF_SCENARIOS (
FIRM CHAR(4) NOT NULL,
SCENARIO_ID NUMBER(22,0) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
USERID CHAR(15) NOT NULL,
SCENARIO_TYPE CHAR(1) NOT NULL,
DESCRIPTION CHAR(30) NOT NULL
)
GO
CREATE TABLE TBLMG_WHATIF_TRANS (
FIRM CHAR(4) NOT NULL,
ENTRY_DATE CHAR(8) NOT NULL,
REFERENCE_NUMBER CHAR(8) NOT NULL,
REFERENCE_SUFFIX CHAR(1) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
SCENARIO_ID NUMBER(22,0) NOT NULL,
CUSIP CHAR(12) NOT NULL,
ACCOUNT CHAR(10) NOT NULL,
NET_CURRENCY CHAR(3) NOT NULL,
NET2_CURRENCY CHAR(3) NOT NULL,
REGISTERED_REP CHAR(4) NOT NULL,
UNDERLYING_CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
PREFIG_PRINC CHAR(1) NOT NULL,
PREFIG_INT CHAR(1) NOT NULL,
PREFIG_COMM CHAR(1) NOT NULL,
PREFIG_FEE CHAR(1) NOT NULL,
ISSUE_TYPE CHAR(4) NOT NULL,
TRADE_DATE CHAR(8) NOT NULL,
SETTLEMENT_DATE CHAR(8) NOT NULL,
RUN_DATE CHAR(8) NOT NULL,
CLIENT_TRANS CHAR(4) NOT NULL,
TRANSACTION_CODE CHAR(3) NOT NULL,
MARKET CHAR(1) NOT NULL,
BLOTTER CHAR(1) NOT NULL,
MEMO_LOCATION CHAR(3) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
ALPHA_PRICE CHAR(12) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
QUANTITY NUMBER(17,4) NOT NULL,
PRINCIPAL NUMBER(17,2) NOT NULL,
INTEREST NUMBER(17,2) NOT NULL,
COMMISSION NUMBER(17,2) NOT NULL,
NET_AMOUNT NUMBER(17,2) NOT NULL,
RR_CREDIT NUMBER(17,2) NOT NULL,
NET2_AMOUNT NUMBER(17,2) NOT NULL,
NUMBER_SM_LINES NUMBER(1,0) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
DESCRIPTION5 CHAR(30) NOT NULL,
DESCRIPTION6 CHAR(30) NOT NULL,
DESCRIPTION7 CHAR(30) NOT NULL,
DESCRIPTION8 CHAR(30) NOT NULL,
DESCRIPTION9 CHAR(30) NOT NULL,
FUND CHAR(3) NOT NULL,
OPTION_OPEN_CLOSE CHAR(1) NOT NULL,
OFFICE CHAR(3) NOT NULL,
ALPHA_CODE CHAR(4) NOT NULL,
REINVEST CHAR(1) NOT NULL,
ALT_SEQUENCE NUMBER(5,0) NOT NULL,
UNDER_COUNTRY CHAR(2) NOT NULL,
DELIVERY_INSTRUCTION CHAR(1) NOT NULL,
OFFSET_ACCOUNT CHAR(10) NOT NULL,
OFFSET_SHORTNAME CHAR(15) NOT NULL,
DEBIT_CREDIT CHAR(2) NOT NULL,
PAYMENT_METHOD CHAR(2) NOT NULL,
COMBINED_CODE CHAR(1) NOT NULL,
COMBINED_ACCOUNT CHAR(10) NOT NULL,
SEC_FEE NUMBER(17,2) NOT NULL,
SERVICE_CHARGE NUMBER(17,2) NOT NULL,
SALES_TAX NUMBER(17,2) NOT NULL,
POSTAGE NUMBER(17,2) NOT NULL,
NEW_YORK_STATE_TAX NUMBER(17,2) NOT NULL,
CENTS_PER_SHARE NUMBER(5,4) NOT NULL,
DISCOUNT_PERCENT NUMBER(5,3) NOT NULL,
DETAIL_RR CHAR(4) NOT NULL,
COMPLIANCE CHAR(1) NOT NULL,
BLOCK CHAR(1) NOT NULL,
LAST_LINE CHAR(1) NOT NULL,
SYMBOL CHAR(12) NOT NULL,
BATCH CHAR(6) NOT NULL,
COMMISSION_SCHEDULE CHAR(2) NOT NULL,
BASIS CHAR(1) NOT NULL,
CONCESSION NUMBER(17,2) NOT NULL,
ORIGINAL_REFERENCE CHAR(15) NOT NULL,
MAJOR_EXECUTING_BADGE CHAR(5) NOT NULL,
MINOR_EXECUTING_BADGE CHAR(5) NOT NULL,
TIME_OF_EXECUTION CHAR(4) NOT NULL,
NO_NAME CHAR(1) NOT NULL,
REBILL CHAR(1) NOT NULL,
ODD_LOT CHAR(1) NOT NULL,
STOCK_BOND_OPTION CHAR(1) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
CONV NUMBER(17,2) NOT NULL,
USERID CHAR(10) NOT NULL
)
GO
CREATE TABLE TBLMG_WHIF_IFA (
FIRM CHAR(4) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
EXCEPTION CHAR(3) NOT NULL,
CUSIP CHAR(12) NOT NULL,
RRN NUMBER(7,0) NOT NULL,
RELATED_EXC CHAR(3) NOT NULL,
TIMESTAMP_FROM DATE NOT NULL,
TIMESTAMP_TO DATE NOT NULL,
AGE NUMBER(5,0) NOT NULL,
RECIPIENT_SUB NUMBER(2,0) NOT NULL,
RR CHAR(8) NOT NULL,
DVP CHAR(1) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
SSNO CHAR(11) NOT NULL,
TRADE_DATE CHAR(8) NOT NULL,
SETTLEMENT_DATE CHAR(8) NOT NULL,
ACTION_DATE CHAR(8) NOT NULL,
DUE_DATE CHAR(8) NOT NULL,
TRANS CHAR(4) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
MEMO_CODE CHAR(3) NOT NULL,
CCY CHAR(3) NOT NULL,
EXTENSION_REASON CHAR(2) NOT NULL,
GROUP_15C3 CHAR(2) NOT NULL,
IFA_RULE CHAR(2) NOT NULL,
DELIVER_WITHIN_24 CHAR(1) NOT NULL,
FUND CHAR(1) NOT NULL,
UNPRICED CHAR(1) NOT NULL,
MARGIN_APPROVAL CHAR(1) NOT NULL,
SYNDICATE CHAR(1) NOT NULL,
ACTION_TAKEN CHAR(20) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
DESCRIPTION2 CHAR(30) NOT NULL,
DESCRIPTION3 CHAR(30) NOT NULL,
DESCRIPTION4 CHAR(30) NOT NULL,
DESCRIPTION5 CHAR(30) NOT NULL,
NA1 CHAR(30) NOT NULL,
NA2 CHAR(30) NOT NULL,
NA3 CHAR(30) NOT NULL,
NA4 CHAR(30) NOT NULL,
NA5 CHAR(30) NOT NULL,
NA6 CHAR(30) NOT NULL,
AMOUNT NUMBER(17,2) NOT NULL,
AMOUNT_USD NUMBER(17,2) NOT NULL,
OVERDUE_AMOUNT NUMBER(17,2) NOT NULL,
OVERDUE_AMOUNT_USD NUMBER(17,2) NOT NULL,
QUANTITY NUMBER(17,4) NOT NULL,
OVERDUE_QUANTITY NUMBER(17,4) NOT NULL,
MONEY_FUND NUMBER(17,2) NOT NULL,
CCY_RATE NUMBER(17,9) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
PCT NUMBER(7,3) NOT NULL,
USERID CHAR(8) NOT NULL,
SYMBOL CHAR(8) NOT NULL,
PM_ACCT CHAR(1) NOT NULL,
PM_ELIG_POS CHAR(1) NOT NULL
)
GO
CREATE TABLE TBLMG_WHIF_PM (
CONC CHAR(1) NOT NULL,
BRBASE CHAR(9) NOT NULL,
TYPE CHAR(1) NOT NULL,
SHORTNAME CHAR(15) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
UNDER_SYM CHAR(10) NOT NULL,
SYM CHAR(10) NOT NULL,
UNDER_CUSIP CHAR(12) NOT NULL,
CUSIP CHAR(12) NOT NULL,
SECTYPE CHAR(4) NOT NULL,
MAT_DATE CHAR(8) NOT NULL,
DESCRIPTION1 CHAR(30) NOT NULL,
STRIKE NUMBER(15,7) NOT NULL,
TDQTY NUMBER(17,4) NOT NULL,
PRICE NUMBER(15,7) NOT NULL,
CCY CHAR(3) NOT NULL,
FX NUMBER(15,7) NOT NULL,
USD_PRICE NUMBER(15,7) NOT NULL,
MV NUMBER(17,2) NOT NULL,
USD_MV NUMBER(17,2) NOT NULL,
UNDER_PRICE NUMBER(15,7) NOT NULL,
CONV NUMBER(15,7) NOT NULL,
ANS_VOL CHAR(1) NOT NULL,
ANS_COL CHAR(2) NOT NULL,
GROUPA_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPA_PCT_01 NUMBER(6,1) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PCT_02 NUMBER(6,1) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PCT_03 NUMBER(6,1) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PCT_04 NUMBER(6,1) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PCT_05 NUMBER(6,1) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PCT_06 NUMBER(6,1) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PCT_07 NUMBER(6,1) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PCT_08 NUMBER(6,1) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PCT_09 NUMBER(6,1) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PCT_10 NUMBER(6,1) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PCT_11 NUMBER(6,1) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PCT_12 NUMBER(6,1) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PCT_13 NUMBER(6,1) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PCT_14 NUMBER(6,1) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PCT_15 NUMBER(6,1) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PCT_16 NUMBER(6,1) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PCT_17 NUMBER(6,1) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PCT_18 NUMBER(6,1) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PCT_19 NUMBER(6,1) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PCT_20 NUMBER(6,1) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PCT_21 NUMBER(6,1) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPA_POS_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPB_PCT_01 NUMBER(6,1) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PCT_02 NUMBER(6,1) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PCT_03 NUMBER(6,1) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PCT_04 NUMBER(6,1) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PCT_05 NUMBER(6,1) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PCT_06 NUMBER(6,1) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PCT_07 NUMBER(6,1) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PCT_08 NUMBER(6,1) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PCT_09 NUMBER(6,1) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PCT_10 NUMBER(6,1) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PCT_11 NUMBER(6,1) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PCT_12 NUMBER(6,1) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PCT_13 NUMBER(6,1) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PCT_14 NUMBER(6,1) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PCT_15 NUMBER(6,1) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PCT_16 NUMBER(6,1) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PCT_17 NUMBER(6,1) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PCT_18 NUMBER(6,1) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PCT_19 NUMBER(6,1) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PCT_20 NUMBER(6,1) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PCT_21 NUMBER(6,1) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_POS_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPC_PCT_01 NUMBER(6,1) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PCT_02 NUMBER(6,1) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PCT_03 NUMBER(6,1) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PCT_04 NUMBER(6,1) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PCT_05 NUMBER(6,1) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PCT_06 NUMBER(6,1) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PCT_07 NUMBER(6,1) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PCT_08 NUMBER(6,1) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PCT_09 NUMBER(6,1) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PCT_10 NUMBER(6,1) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PCT_11 NUMBER(6,1) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PCT_12 NUMBER(6,1) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PCT_13 NUMBER(6,1) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PCT_14 NUMBER(6,1) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PCT_15 NUMBER(6,1) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PCT_16 NUMBER(6,1) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PCT_17 NUMBER(6,1) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PCT_18 NUMBER(6,1) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PCT_19 NUMBER(6,1) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PCT_20 NUMBER(6,1) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PCT_21 NUMBER(6,1) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_POS_PL_21 NUMBER(17,6) NOT NULL,
VOLATILITY NUMBER(10,7) NOT NULL,
TRADE_VOLUME NUMBER(9,0) NOT NULL,
VOLATILITY_DAYS CHAR(3) NOT NULL,
VOLUME_DAYS CHAR(3) NOT NULL,
MARKET_CAP NUMBER(14,2) NOT NULL,
ISSUE_SIZE NUMBER(12,0) NOT NULL,
COUNTRY CHAR(2) NOT NULL,
EXCH CHAR(4) NOT NULL,
EXCH_COUNTRY CHAR(2) NOT NULL,
EQCCY CHAR(3) NOT NULL,
DOLLAR_DELTA NUMBER(17,0) NOT NULL,
MIN_RQT NUMBER(17,2) NOT NULL,
ADP_NUMBER CHAR(7) NOT NULL,
UNDER_ADP_NUMBER CHAR(7) NOT NULL,
ADJ_MAX_DOWN_SHOCK NUMBER(4,1) NOT NULL,
ADJ_MAX_UP_SHOCK NUMBER(4,1) NOT NULL,
VOLT_ADJ_DOWN_SHOCK NUMBER(4,1) NOT NULL,
VOLT_ADJ_UP_SHOCK NUMBER(4,1) NOT NULL,
MIN_PRICE_DOWN_SHOCK NUMBER(6,1) NOT NULL,
MIN_PRICE_UP_SHOCK NUMBER(6,1) NOT NULL,
CPORT_RQT NUMBER(17,2) NOT NULL,
CVB_PREMIUM NUMBER(17,2) NOT NULL,
SHRS_PER NUMBER(15,7) NOT NULL
)
GO
CREATE TABLE TBLMG_WHIF_PM_SUMMARY (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
LMV NUMBER(17,2) NOT NULL,
SMV NUMBER(17,2) NOT NULL,
NMV NUMBER(17,2) NOT NULL,
ANS_VOL CHAR(1) NOT NULL,
ANS_COL CHAR(2) NOT NULL,
TOT_REQT NUMBER(17,2) NOT NULL,
TOT_REQT_PCT NUMBER(6,3) NOT NULL,
BASE_REQT NUMBER(17,2) NOT NULL,
LIQ_REQT NUMBER(17,2) NOT NULL,
CONC_REQT NUMBER(17,2) NOT NULL,
PREM_REQT NUMBER(17,2) NOT NULL,
MIN_REQT NUMBER(17,2) NOT NULL,
GROUPA_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
LIQ_VOL_CHG NUMBER(17,0) NOT NULL,
LIQ_ISS_CHG NUMBER(17,0) NOT NULL,
LIQ_LS_CHG NUMBER(17,0) NOT NULL,
LIQ_POSITION NUMBER(17,0) NOT NULL,
LIQ_DAYS NUMBER(9,1) NOT NULL,
LIQ_ISSUE_PCT NUMBER(9,1) NOT NULL,
MIN_SHOCK_PCT NUMBER(6,1) NOT NULL,
MAX_SHOCK_PCT NUMBER(6,1) NOT NULL,
BASE_PX_SHOCK NUMBER(6,1) NOT NULL,
CPORT_REQT NUMBER(17,2) NOT NULL,
MARKET_CAP NUMBER(14,2) NOT NULL
)
GO
CREATE TABLE TBLMG_WHIF_PM_SUMMARY_CONC (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
CLASS_GROUP CHAR(6) NOT NULL,
LMV NUMBER(17,2) NOT NULL,
SMV NUMBER(17,2) NOT NULL,
NMV NUMBER(17,2) NOT NULL,
ANS_VOL CHAR(1) NOT NULL,
ANS_COL CHAR(2) NOT NULL,
TOT_REQT NUMBER(17,2) NOT NULL,
TOT_REQT_PCT NUMBER(6,3) NOT NULL,
BASE_REQT NUMBER(17,2) NOT NULL,
LIQ_REQT NUMBER(17,2) NOT NULL,
CONC_REQT NUMBER(17,2) NOT NULL,
PREM_REQT NUMBER(17,2) NOT NULL,
MIN_REQT NUMBER(17,2) NOT NULL,
GROUPA_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_VOL_PCT NUMBER(4,1) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
LIQ_VOL_CHG NUMBER(17,0) NOT NULL,
LIQ_ISS_CHG NUMBER(17,0) NOT NULL,
LIQ_LS_CHG NUMBER(17,0) NOT NULL,
LIQ_POSITION NUMBER(17,0) NOT NULL,
LIQ_DAYS NUMBER(9,1) NOT NULL,
LIQ_ISSUE_PCT NUMBER(9,1) NOT NULL,
MIN_SHOCK_PCT NUMBER(6,1) NOT NULL,
MAX_SHOCK_PCT NUMBER(6,1) NOT NULL,
BASE_PX_SHOCK NUMBER(6,1) NOT NULL,
CPORT_REQT NUMBER(17,2) NOT NULL,
MARKET_CAP NUMBER(14,2) NOT NULL
)
GO
CREATE TABLE TBLMG_WHIF_PM_SUM_OFFSETS (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
MIN_REQT NUMBER(17,6) NOT NULL,
ANSWER NUMBER(17,6) NOT NULL
)
GO
CREATE TABLE TBLMG_WHIF_PM_SUM_OFFSETS_CONC (
BRBASE CHAR(9) NOT NULL,
PORTFOLIO_GROUP CHAR(5) NOT NULL,
PRODUCT_GROUP CHAR(5) NOT NULL,
GROUPA_PL_01 NUMBER(17,6) NOT NULL,
GROUPA_PL_02 NUMBER(17,6) NOT NULL,
GROUPA_PL_03 NUMBER(17,6) NOT NULL,
GROUPA_PL_04 NUMBER(17,6) NOT NULL,
GROUPA_PL_05 NUMBER(17,6) NOT NULL,
GROUPA_PL_06 NUMBER(17,6) NOT NULL,
GROUPA_PL_07 NUMBER(17,6) NOT NULL,
GROUPA_PL_08 NUMBER(17,6) NOT NULL,
GROUPA_PL_09 NUMBER(17,6) NOT NULL,
GROUPA_PL_10 NUMBER(17,6) NOT NULL,
GROUPA_PL_11 NUMBER(17,6) NOT NULL,
GROUPA_PL_12 NUMBER(17,6) NOT NULL,
GROUPA_PL_13 NUMBER(17,6) NOT NULL,
GROUPA_PL_14 NUMBER(17,6) NOT NULL,
GROUPA_PL_15 NUMBER(17,6) NOT NULL,
GROUPA_PL_16 NUMBER(17,6) NOT NULL,
GROUPA_PL_17 NUMBER(17,6) NOT NULL,
GROUPA_PL_18 NUMBER(17,6) NOT NULL,
GROUPA_PL_19 NUMBER(17,6) NOT NULL,
GROUPA_PL_20 NUMBER(17,6) NOT NULL,
GROUPA_PL_21 NUMBER(17,6) NOT NULL,
GROUPB_PL_01 NUMBER(17,6) NOT NULL,
GROUPB_PL_02 NUMBER(17,6) NOT NULL,
GROUPB_PL_03 NUMBER(17,6) NOT NULL,
GROUPB_PL_04 NUMBER(17,6) NOT NULL,
GROUPB_PL_05 NUMBER(17,6) NOT NULL,
GROUPB_PL_06 NUMBER(17,6) NOT NULL,
GROUPB_PL_07 NUMBER(17,6) NOT NULL,
GROUPB_PL_08 NUMBER(17,6) NOT NULL,
GROUPB_PL_09 NUMBER(17,6) NOT NULL,
GROUPB_PL_10 NUMBER(17,6) NOT NULL,
GROUPB_PL_11 NUMBER(17,6) NOT NULL,
GROUPB_PL_12 NUMBER(17,6) NOT NULL,
GROUPB_PL_13 NUMBER(17,6) NOT NULL,
GROUPB_PL_14 NUMBER(17,6) NOT NULL,
GROUPB_PL_15 NUMBER(17,6) NOT NULL,
GROUPB_PL_16 NUMBER(17,6) NOT NULL,
GROUPB_PL_17 NUMBER(17,6) NOT NULL,
GROUPB_PL_18 NUMBER(17,6) NOT NULL,
GROUPB_PL_19 NUMBER(17,6) NOT NULL,
GROUPB_PL_20 NUMBER(17,6) NOT NULL,
GROUPB_PL_21 NUMBER(17,6) NOT NULL,
GROUPC_PL_01 NUMBER(17,6) NOT NULL,
GROUPC_PL_02 NUMBER(17,6) NOT NULL,
GROUPC_PL_03 NUMBER(17,6) NOT NULL,
GROUPC_PL_04 NUMBER(17,6) NOT NULL,
GROUPC_PL_05 NUMBER(17,6) NOT NULL,
GROUPC_PL_06 NUMBER(17,6) NOT NULL,
GROUPC_PL_07 NUMBER(17,6) NOT NULL,
GROUPC_PL_08 NUMBER(17,6) NOT NULL,
GROUPC_PL_09 NUMBER(17,6) NOT NULL,
GROUPC_PL_10 NUMBER(17,6) NOT NULL,
GROUPC_PL_11 NUMBER(17,6) NOT NULL,
GROUPC_PL_12 NUMBER(17,6) NOT NULL,
GROUPC_PL_13 NUMBER(17,6) NOT NULL,
GROUPC_PL_14 NUMBER(17,6) NOT NULL,
GROUPC_PL_15 NUMBER(17,6) NOT NULL,
GROUPC_PL_16 NUMBER(17,6) NOT NULL,
GROUPC_PL_17 NUMBER(17,6) NOT NULL,
GROUPC_PL_18 NUMBER(17,6) NOT NULL,
GROUPC_PL_19 NUMBER(17,6) NOT NULL,
GROUPC_PL_20 NUMBER(17,6) NOT NULL,
GROUPC_PL_21 NUMBER(17,6) NOT NULL,
MIN_REQT NUMBER(17,6) NOT NULL,
ANSWER NUMBER(17,6) NOT NULL
)
GO
CREATE VIEW VWMG_BONDS_NOT_RCONV_SM ( CUSIP, DESCRIPTION, TIMESTAMP_TO )
AS
select
a.Cusip as Cusip,
(coalesce((select Description1 from tblMG_SM n where n.Cusip = a.Cusip and
n.Timestamp_To = '31-DEC-9999'), ' ')) as Description,
a.Timestamp_To as Timestamp_To
from tblMG_Bonds_Not_Rconv a
where
a.Timestamp_To = '31-DEC-9999' and
a.Firm= 'DB'

GO
CREATE VIEW VWMG_COMB_REGU_ACCOUNTS ( FIRM, FROMBRBASE, TOBRBASE,
TIMESTAMP_FROM, TIMESTAMP_TO, COMBINEDBRBASE, NAME, REGUMATCHFLAG, USERID )
AS
select a.Firm, a.FromBrbase, a.ToBrbase, a.Timestamp_From, a.Timestamp_To,
a.CombinedBrbase, a.Name,
(case when b.frombrbase is null then 'N' else 'Y' end) as MatchFlag, a.UserID
FROM TBLMG_combined_accounts a left outer join tblmg_reg_u_accounts b on
a.combinedbrbase = b.frombrbase and
a.timestamp_to = '31-DEC-9999' and
b.timestamp_to = '31-DEC-9999'

GO
CREATE VIEW VWMG_CRL_ML2 ( FIRM, BRBASE, TIMESTAMP_FROM, TIMESTAMP_TO,
SHORTNAME, RR, CURRENCY_CODE, PRINT_STATUS, NA_STATUS, REQUEST_PRINT, ACTIVITY,
LAST_ACTIVE_DATE, PERCENT_EQUITY, MARGIN_PERCENT, LONG_VALUE_TYPE1,
LONG_VALUE_TYPE2, LONG_VALUE_TYPE3, LONG_VALUE_TYPE4, LONG_VALUE_TYPE5,
LONG_VALUE_TYPE6, LONG_VALUE_TYPE7, LONG_VALUE_TYPE8, LONG_VALUE_TYPE9,
LONG_VALUE_TYPE10, LONG_VALUE_TYPE11, SHORT_VALUE_TYPE1, SHORT_VALUE_TYPE2,
SHORT_VALUE_TYPE3, SHORT_VALUE_TYPE4, SHORT_VALUE_TYPE5, SHORT_VALUE_TYPE6,
SHORT_VALUE_TYPE7, SHORT_VALUE_TYPE8, SHORT_VALUE_TYPE9, SHORT_VALUE_TYPE10,
SHORT_VALUE_TYPE11, CASH_AVAILABLE, BUYING_POWER, SMA, SMA_TRADES,
SMA_BOOKKEEPING, SMA_BOOKKEEPING_CREDIT, SMA_ADJUST, SMA_XS, PRIOR_SMA,
HOUSE_XS, EXCHANGE_XS, FEDERAL_XS, MARGIN_AVAILABLE, OPTION_LONG_VALUE,
OPTION_SHORT_VALUE, EQUITY, TRUE_EQUITY, COMBINED_SD_BALANCE,
COMBINED_TD_BALANCE, CASH_CASH_AVAILABLE, MARGIN_CASH_AVAILABLE, COMBINED,
USERID, MARGIN_TD_BALANCE, LMV, SMV, MARGIN_HOUSE_XS )
AS
select a.Firm,
a.Brbase,
a.Timestamp_From,
a.Timestamp_To,
a.Shortname,
a.RR,
a.Currency_Code,
a.Print_Status,
a.NA_Status,
a.Request_Print,
a.Activity,
a.Last_Active_Date,
a.Percent_Equity,
a.Margin_Percent,
a.Long_Value_Type1,
a.Long_Value_Type2,
a.Long_Value_Type3,
a.Long_Value_Type4,
a.Long_Value_Type5,
a.Long_Value_Type6,
a.Long_Value_Type7,
a.Long_Value_Type8,
a.Long_Value_Type9,
a.Long_Value_Type10,
a.Long_Value_Type11,
a.Short_Value_Type1,
a.Short_Value_Type2,
a.Short_Value_Type3,
a.Short_Value_Type4,
a.Short_Value_Type5,
a.Short_Value_Type6,
a.Short_Value_Type7,
a.Short_Value_Type8,
a.Short_Value_Type9,
a.Short_Value_Type10,
a.Short_Value_Type11,
a.Cash_Available,
a.Buying_Power,
a.SMA,
a.Sma_Trades,
a.SMA_Bookkeeping,
a.SMA_Bookkeeping_Credit,
a.SMA_Adjust,
a.SMA_XS,
a.Prior_SMA,
a.House_XS,
a.Exchange_XS,
a.Federal_XS,
a.Margin_Available,
a.Option_Long_Value,
a.Option_Short_Value,
a.Equity,
a.True_Equity,
a.Combined_SD_Balance,
a.Combined_TD_Balance,
a.Cash_Cash_Available,
a.Margin_Cash_Available,
a.Combined,
a.UserID,
a.Margin_TD_Balance,
a.Long_Value_Type2 + a.Long_Value_Type5,
a.Short_Value_Type2 + a.Short_Value_Type5,
a.Margin_House_XS
from tblMG_SMAWork a, tblMG_PA_CRL c
where a.Timestamp_To = '31-dec-9999' and
c.Timestamp_To = '31-dec-9999' and
a.Firm = c.Firm and
a.Brbase = c.Brbase

GO
CREATE VIEW VWMG_HIGH_PROFILE_ACCTS_ML ( FIRM, BRBASE, TIMESTAMP_FROM,
TIMESTAMP_TO, SHORTNAME, RR, CURRENCY_CODE, PRINT_STATUS, NA_STATUS,
REQUEST_PRINT, ACTIVITY, LAST_ACTIVE_DATE, PERCENT_EQUITY, MARGIN_PERCENT,
LONG_VALUE_TYPE1, LONG_VALUE_TYPE2, LONG_VALUE_TYPE3, LONG_VALUE_TYPE4,
LONG_VALUE_TYPE5, LONG_VALUE_TYPE6, LONG_VALUE_TYPE7, LONG_VALUE_TYPE8,
LONG_VALUE_TYPE9, LONG_VALUE_TYPE10, LONG_VALUE_TYPE11, SHORT_VALUE_TYPE1,
SHORT_VALUE_TYPE2, SHORT_VALUE_TYPE3, SHORT_VALUE_TYPE4, SHORT_VALUE_TYPE5,
SHORT_VALUE_TYPE6, SHORT_VALUE_TYPE7, SHORT_VALUE_TYPE8, SHORT_VALUE_TYPE9,
SHORT_VALUE_TYPE10, SHORT_VALUE_TYPE11, CASH_AVAILABLE, BUYING_POWER, SMA,
SMA_TRADES, SMA_BOOKKEEPING, SMA_BOOKKEEPING_CREDIT, SMA_ADJUST, SMA_XS,
PRIOR_SMA, HOUSE_XS, EXCHANGE_XS, FEDERAL_XS, MARGIN_AVAILABLE,
OPTION_LONG_VALUE, OPTION_SHORT_VALUE, EQUITY, TRUE_EQUITY, COMBINED_SD_BALANCE,
CASH_CASH_AVAILABLE, MARGIN_CASH_AVAILABLE, COMBINED, USERID,
COMBINED_TD_BALANCE, LMV, SMV )
AS
select a.Firm,
a.Brbase,
a.Timestamp_From,
a.Timestamp_To,
a.Shortname,
a.RR,
a.Currency_Code,
a.Print_Status,
a.NA_Status,
a.Request_Print,
a.Activity,
a.Last_Active_Date,
a.Percent_Equity,
a.Margin_Percent,
a.Long_Value_Type1,
a.Long_Value_Type2,
a.Long_Value_Type3,
a.Long_Value_Type4,
a.Long_Value_Type5,
a.Long_Value_Type6,
a.Long_Value_Type7,
a.Long_Value_Type8,
a.Long_Value_Type9,
a.Long_Value_Type10,
a.Long_Value_Type11,
a.Short_Value_Type1,
a.Short_Value_Type2,
a.Short_Value_Type3,
a.Short_Value_Type4,
a.Short_Value_Type5,
a.Short_Value_Type6,
a.Short_Value_Type7,
a.Short_Value_Type8,
a.Short_Value_Type9,
a.Short_Value_Type10,
a.Short_Value_Type11,
a.Cash_Available,
a.Buying_Power,
a.SMA,
a.Sma_Trades,
a.SMA_Bookkeeping,
a.SMA_Bookkeeping_Credit,
a.SMA_Adjust,
a.SMA_XS,
a.Prior_SMA,
a.House_XS,
a.Exchange_XS,
a.Federal_XS,
a.Margin_Available,
a.Option_Long_Value,
a.Option_Short_Value,
a.Equity,
a.True_Equity,
a.Combined_SD_Balance,
a.Cash_Cash_Available,
a.Margin_Cash_Available,
a.Combined,
a.UserID,
a.Combined_TD_Balance,
a.Long_Value_Type1 + a.Long_Value_Type2 + a.Long_Value_Type3 +
a.Long_Value_Type4 +
a.Long_Value_Type5 + a.Long_Value_Type6 + a.Long_Value_Type7 +
a.Long_Value_Type8 +
a.Long_Value_Type9 + a.Long_Value_Type10 + a.Long_Value_Type11,
a.Short_Value_Type1 + a.Short_Value_Type2 + a.Short_Value_Type3 +
a.Short_Value_Type4 +
a.Short_Value_Type5 + a.Short_Value_Type6 + a.Short_Value_Type7 +
a.Short_Value_Type8 +
a.Short_Value_Type9 + a.Short_Value_Type10 + a.Short_Value_Type11
from tblMG_SMAWork a, tblMG_PA_High_Profile_Accts c
where a.Timestamp_To = '31-dec-9999' and
c.Timestamp_To = '31-dec-9999' and
a.Firm = c.Firm and
a.Brbase = c.Brbase

GO
CREATE VIEW VWMG_JOIN_IFA_TABLES ( RECIPIENT_NUMBER, IFA, USER_ACCESS_ID,
DESCRIPTION, TIMESTAMP_TO, FIRM )
AS
select distinct
a.Recipient_Number,
a.IFA,
b.User_Access_ID,
c.Description,
a.Timestamp_to,
a.Firm
from tblMG_PA_IFA_Assignments a,
tblMG_PA_IFA_Recipients b,
tblMG_PA_IFA_Names c
where a.Recipient_Number = b.Recipient_Number and
a.IFA = c.IFA and
a.Timestamp_To = b.Timestamp_To and
a.Timestamp_To = c.Timestamp_To and
a.Firm = b.Firm and
a.Firm = c.Firm

GO
CREATE VIEW VWMG_JOIN_INT_BASE_RATE_TABLES ( FIRM, RATE_GROUP, EFFECTIVE_DATE,
TIMESTAMP_FROM, TIMESTAMP_TO, RATE_PERCENT, USERID, DESCRIPTION )
AS
select distinct
a.Firm,
a.Rate_Group,
a.Effective_Date,
a.Timestamp_From,
a.Timestamp_To,
a.Rate_Percent,
a.UserID,
b.Description
from tblMG_Int_Base_Rates a,
tblMG_Int_Base_Rate_Desc b
where a.Rate_Group = b.Rate_Group and
a.Timestamp_To = b.Timestamp_To and
a.Firm = b.Firm

GO
CREATE VIEW VWMG_JOIN_NOTEPAD_NA ( FIRM, BRBASE, TIMESTAMP_FROM, TIMESTAMP_TO,
EXPIRATION_DATE, ACTIVITY_DATE, LINE1, LINE2, LINE3, LINE4, LINE5, LINE6, LINE7,
LINE8, LINE9, LINE10, PLEDGE_COLLATERAL, USERID, COMPANY, ACATS, BLOCK, FROZEN )
AS
select a.Firm,
a.Brbase,
a.Timestamp_From,
a.Timestamp_To,
a.Expiration_Date,
a.Activity_Date,
a.Line1,
a.Line2,
a.Line3,
a.Line4,
a.Line5,
a.Line6,
a.Line7,
a.Line8,
a.Line9,
a.Line10,
a.Pledge_Collateral,
a.UserID,
a.Company,
a.Acats,
a.Block,
a.Frozen
from tblMG_Notepad a, tblMG_NA b
where a.Brbase(+) = b.Brbase and
a.Timestamp_To = '31-dec-9999' and
b.Timestamp_To = '31-dec-9999'

GO
CREATE VIEW VWMG_JOIN_SMAWORK_WITH_TB ( FIRM, BRBASE, TIMESTAMP_FROM,
TIMESTAMP_TO, TYPE, TAX_ID, SHORTNAME, OLD_ACCOUNT, RR, CURRENCY_CODE,
PRINT_STATUS, NA_STATUS, REQUEST_PRINT, ACTIVITY, MARGIN_ACCOUNT, ACTIVE_VENDOR,
TEFRA, DAY_TRADE, PROCEEDS_INSTRUCTION, SECURITIES_INSTRUCTION,
INCOME_INSTRUCTION, COD_PRINT, MARGIN_AGREEMENT, OPTION_AGREEMENT,
OPTION_BUY_CALLS, OPTION_BUY_PUTS, OPTION_WRITE_COVERED_CALLS,
OPTION_WRITE_UNCOVERED_CALLS, OPTION_WRITE_COVERED_PUTS,
OPTION_WRITE_UNCOVERED_PUTS, OPTION_SPREADS, OPTION_COMBINATIONS,
LAST_ACTIVE_DATE, LAST_SMA_CHANGE, LAST_TRADE_DATE, PERCENT_EQUITY,
MARGIN_PERCENT, NAKED, SPREADS, ACTIVE_TYPE1, ACTIVE_TYPE2, ACTIVE_TYPE3,
ACTIVE_TYPE4, ACTIVE_TYPE5, ACTIVE_TYPE6, ACTIVE_TYPE7, ACTIVE_TYPE8,
ACTIVE_TYPE9, ACTIVE_TYPE10, ACTIVE_TYPE11, UNPRICED_POSITION_TYPE1,
UNPRICED_POSITION_TYPE2, UNPRICED_POSITION_TYPE3, UNPRICED_POSITION_TYPE4,
UNPRICED_POSITION_TYPE5, UNPRICED_POSITION_TYPE6, UNPRICED_POSITION_TYPE7,
UNPRICED_POSITION_TYPE8, UNPRICED_POSITION_TYPE9, UNPRICED_POSITION_TYPE10,
UNPRICED_POSITION_TYPE11, LONG_VALUE_TYPE1, LONG_VALUE_TYPE2, LONG_VALUE_TYPE3,
LONG_VALUE_TYPE4, LONG_VALUE_TYPE5, LONG_VALUE_TYPE6, LONG_VALUE_TYPE7,
LONG_VALUE_TYPE8, LONG_VALUE_TYPE9, LONG_VALUE_TYPE10, LONG_VALUE_TYPE11,
SHORT_VALUE_TYPE1, SHORT_VALUE_TYPE2, SHORT_VALUE_TYPE3, SHORT_VALUE_TYPE4,
SHORT_VALUE_TYPE5, SHORT_VALUE_TYPE6, SHORT_VALUE_TYPE7, SHORT_VALUE_TYPE8,
SHORT_VALUE_TYPE9, SHORT_VALUE_TYPE10, SHORT_VALUE_TYPE11, CASH_AVAILABLE,
BUYING_POWER, SMA, SMA_TRADES, SMA_BOOKKEEPING, SMA_BOOKKEEPING_CREDIT,
SMA_ADJUST, SMA_XS, PRIOR_SMA, HOUSE_XS, EXCHANGE_XS, FEDERAL_XS, TODAY_CALL,
MARGIN_AVAILABLE, FREE_VALUE, MAX_FREE, NAKED_VALUE, OPTION_LONG_VALUE,
OPTION_SHORT_VALUE, EQUITY, TRUE_EQUITY, OPTION_REQUIREMENT,
ADDITIONAL_REQUIREMENT, PRIOR_DATE_BUYING_POWER, COMBINED_SD_BALANCE,
SWEEP_TYPE_CASH, SWEEP_TYPE_MARGIN, OPENING_FREE_VALUE, AGED_CHECKS,
INTEREST_BALANCE, TOTAL_FREE_CASH, CASH_CASH_AVAILABLE, MARGIN_CASH_AVAILABLE,
NON_PURPOSE_LOAN_HOUSE_XS, NON_PURPOSE_LOAN_EXCHANGE_XS, ONLINE_MARGIN_EQUITY,
ONLINE_FEDERAL_STOCKS, ONLINE_EXCHANGE_STOCKS, ONLINE_HOUSE_STOCKS,
ONLINE_EXCHANGE_CONC, ONLINE_FEDERAL_OPTIONS, ONLINE_EXCHANGE_OPTIONS,
ONLINE_CALL_EXTENSION, ONLINE_MTD_BOND_INTEREST, ONLINE_MTD_CREDIT_INTEREST,
ONLINE_MTD_MARGIN_INTEREST, ONLINE_ASOF_MMDD, ONLINE_FED_CALL_MMDD,
ONLINE_EXCHANGE_CALL_MMDD, ONLINE_EXTENSION_CALL_MMDD, ONLINE_HOUSE_CALL_MMDD,
WHEN_ISSUE_BALANCE_CASH, WHEN_ISSUE_BALANCE_MARGIN, CASH_HOUSE_XS,
MARGIN_HOUSE_XS, CASH_EXCHANGE_XS, MARGIN_EXCHANGE_XS, WHEN_ISSUE_DEPOSITS,
COMBINED, CITIZENSHIP, SWEEP, ACTIVE_FUND, ACTIVE_BALANCE,
FOREIGN_CURRENCY_ACCOUNT, GROUP_15C3, WHEN_ISSUE_BALANCE_SHORT, ACCOUNT_GROUP,
ACATS, USERID, SETTLE_DATE_BALANCE )
AS
select a.Firm,
a.Brbase,
a.Timestamp_From,
a.Timestamp_To,
a.Type,
a.Tax_ID,
a.Shortname,
a.Old_Account,
a.RR,
a.Currency_Code,
a.Print_Status,
a.NA_Status,
a.Request_Print,
a.Activity,
a.Margin_Account,
a.Active_Vendor,
a.Tefra,
a.Day_Trade,
a.Proceeds_Instruction,
a.Securities_Instruction,
a.Income_Instruction,
a.COD_Print,
a.Margin_Agreement,
a.Option_Agreement,
a.Option_Buy_Calls,
a.Option_Buy_Puts,
a.Option_Write_Covered_Calls,
a.Option_Write_Uncovered_Calls,
a.Option_Write_Covered_Puts,
a.Option_Write_Uncovered_Puts,
a.Option_Spreads,
a.Option_Combinations,
a.Last_Active_Date,
a.Last_SMA_Change,
a.Last_Trade_Date,
a.Percent_Equity,
a.Margin_Percent,
a.Naked,
a.Spreads,
a.Active_Type1,
a.Active_Type2,
a.Active_Type3,
a.Active_Type4,
a.Active_Type5,
a.Active_Type6,
a.Active_Type7,
a.Active_Type8,
a.Active_Type9,
a.Active_Type10,
a.Active_Type11,
a.Unpriced_Position_Type1,
a.Unpriced_Position_Type2,
a.Unpriced_Position_Type3,
a.Unpriced_Position_Type4,
a.Unpriced_Position_Type5,
a.Unpriced_Position_Type6,
a.Unpriced_Position_Type7,
a.Unpriced_Position_Type8,
a.Unpriced_Position_Type9,
a.Unpriced_Position_Type10,
a.Unpriced_Position_Type11,
a.Long_Value_Type1,
a.Long_Value_Type2,
a.Long_Value_Type3,
a.Long_Value_Type4,
a.Long_Value_Type5,
a.Long_Value_Type6,
a.Long_Value_Type7,
a.Long_Value_Type8,
a.Long_Value_Type9,
a.Long_Value_Type10,
a.Long_Value_Type11,
a.Short_Value_Type1,
a.Short_Value_Type2,
a.Short_Value_Type3,
a.Short_Value_Type4,
a.Short_Value_Type5,
a.Short_Value_Type6,
a.Short_Value_Type7,
a.Short_Value_Type8,
a.Short_Value_Type9,
a.Short_Value_Type10,
a.Short_Value_Type11,
a.Cash_Available,
a.Buying_Power,
a.SMA,
a.Sma_Trades,
a.SMA_Bookkeeping,
a.SMA_Bookkeeping_Credit,
a.SMA_Adjust,
a.SMA_XS,
a.Prior_SMA,
a.House_XS,
a.Exchange_XS,
a.Federal_XS,
a.Today_Call,
a.Margin_Available,
a.Free_Value,
a.Max_Free,
a.Naked_Value,
a.Option_Long_Value,
a.Option_Short_Value,
a.Equity,
a.True_Equity,
a.Option_Requirement,
a.Additional_Requirement,
a.Prior_Date_Buying_Power,
a.Combined_SD_Balance,
a.Sweep_Type_Cash,
a.Sweep_Type_Margin,
a.Opening_Free_Value,
a.Aged_Checks,
a.Interest_Balance,
a.Total_Free_Cash,
a.Cash_Cash_Available,
a.Margin_Cash_Available,
a.Non_Purpose_Loan_House_XS,
a.Non_Purpose_Loan_Exchange_XS,
a.Online_Margin_Equity,
a.Online_Federal_Stocks,
a.Online_Exchange_Stocks,
a.Online_House_Stocks,
a.Online_Exchange_Conc,
a.Online_Federal_Options,
a.Online_Exchange_Options,
a.Online_Call_Extension,
a.Online_MTD_Bond_Interest,
a.Online_MTD_Credit_Interest,
a.Online_MTD_Margin_Interest,
a.Online_Asof_MMDD,
a.Online_Fed_Call_MMDD,
a.Online_Exchange_Call_MMDD,
a.Online_Extension_Call_MMDD,
a.Online_House_Call_MMDD,
a.When_Issue_Balance_Cash,
a.When_Issue_Balance_Margin,
a.Cash_House_XS,
a.Margin_House_XS,
a.Cash_Exchange_XS,
a.Margin_Exchange_XS,
a.When_Issue_Deposits,
a.Combined,
a.Citizenship,
a.Sweep,
a.Active_Fund,
a.Active_Balance,
a.Foreign_Currency_Account,
a.Group_15C3,
a.When_Issue_Balance_Short,
a.Account_Group,
a.ACATS,
a.UserID,
(select sum(Settlement_Date_Balance)
from tblMG_TB
where Currency = 'USD' and
Brbase = a.Brbase and
Firm = a.Firm and
Timestamp_To = '31-dec-9999')
from tblMG_SMAWork a
where a.Timestamp_To = '31-dec-9999'

GO
CREATE VIEW VWMG_JOIN_TB_WITH_SPOT_RATES ( TD_BRBASE, TD_FIRM, TD_CURRENCY,
TD_BAL, TD_RATE )
AS
select t.Brbase,
t.Firm,
t.Currency,
sum(t.Trade_Date_Balance),
s.Rate
from tblMG_TB t, tblMG_Spot_Rates s
where t.Currency = s.ISO and
t.Timestamp_To = '31-dec-9999' and
s.Timestamp_To = '31-dec-9999'
group by t.Currency, s.Rate, t.Brbase, t.Firm

GO
CREATE VIEW VWMG_PM_IFAS ( EXCEPTION, CT_ALL, CT_PROD, CT_DEMO, NAME,
SUM_QTY_ALL, SUM_QTY_PROD, SUM_QTY_DEMO, SUM_AMT_ALL, SUM_AMT_PROD, SUM_AMT_DEMO
)
AS
select
a.IFA as Exception,
(select count(*) from tblMG_IFA b where b.Exception = a.IFA and
b.Timestamp_From = (select to_date(PA_Run_Date, 'YYYYMMDD') from tblMG_PA_Date
where PA_Key = '000000') and
b.Brbase in (select Brbase from tblMG_PM_Accounts c where c.Timestamp_To = '31-
DEC-9999'))
as ct_all,
(select count(*) from tblMG_IFA b where b.Exception = a.IFA and
b.Timestamp_From = (select to_date(PA_Run_Date, 'YYYYMMDD') from tblMG_PA_Date
where PA_Key = '000000') and
b.Brbase in (select Brbase from tblMG_PM_Accounts c where c.Timestamp_To = '31-
DEC-9999' and c.Prod_Or_Demo_Acct = 'P'))
as ct_prod,
(select count(*) from tblMG_IFA b where b.Exception = a.IFA and
b.Timestamp_From = (select to_date(PA_Run_Date, 'YYYYMMDD') from tblMG_PA_Date
where PA_Key = '000000') and
b.Brbase in (select Brbase from tblMG_PM_Accounts c where c.Timestamp_To = '31-
DEC-9999' and c.Prod_Or_Demo_Acct = 'D'))
as ct_demo,
(case when a.IFA = '101' then
('PM Unsecured Debits')
else
(a.Description)
end) as name,
(select coalesce(sum(Quantity), 0) from tblMG_IFA b where b.Exception = a.IFA
and
b.Timestamp_From = (select to_date(PA_Run_Date, 'YYYYMMDD') from tblMG_PA_Date
where PA_Key = '000000') and
b.Brbase in (select Brbase from tblMG_PM_Accounts c where c.Timestamp_To = '31-
DEC-9999'))
as sum_qty_all,
(select coalesce(sum(Quantity), 0) from tblMG_IFA b where b.Exception = a.IFA
and
b.Timestamp_From = (select to_date(PA_Run_Date, 'YYYYMMDD') from tblMG_PA_Date
where PA_Key = '000000') and
b.Brbase in (select Brbase from tblMG_PM_Accounts c where c.Timestamp_To = '31-
DEC-9999' and c.Prod_Or_Demo_Acct = 'P'))
as sum_qty_prod,
(select coalesce(sum(Quantity), 0) from tblMG_IFA b where b.Exception = a.IFA
and
b.Timestamp_From = (select to_date(PA_Run_Date, 'YYYYMMDD') from tblMG_PA_Date
where PA_Key = '000000') and
b.Brbase in (select Brbase from tblMG_PM_Accounts c where c.Timestamp_To = '31-
DEC-9999' and c.Prod_Or_Demo_Acct = 'D'))
as sum_qty_demo,
(select coalesce(sum(Amount), 0) from tblMG_IFA b where b.Exception = a.IFA and
b.Timestamp_From = (select to_date(PA_Run_Date, 'YYYYMMDD') from tblMG_PA_Date
where PA_Key = '000000') and
b.Brbase in (select Brbase from tblMG_PM_Accounts c where c.Timestamp_To = '31-
DEC-9999'))
as sum_amt_all,
(select coalesce(sum(Amount), 0) from tblMG_IFA b where b.Exception = a.IFA and
b.Timestamp_From = (select to_date(PA_Run_Date, 'YYYYMMDD') from tblMG_PA_Date
where PA_Key = '000000') and
b.Brbase in (select Brbase from tblMG_PM_Accounts c where c.Timestamp_To = '31-
DEC-9999' and c.Prod_Or_Demo_Acct = 'P'))
as sum_amt_prod,
(select coalesce(sum(Amount), 0) from tblMG_IFA b where b.Exception = a.IFA and
b.Timestamp_From = (select to_date(PA_Run_Date, 'YYYYMMDD') from tblMG_PA_Date
where PA_Key = '000000') and
b.Brbase in (select Brbase from tblMG_PM_Accounts c where c.Timestamp_To = '31-
DEC-9999' and c.Prod_Or_Demo_Acct = 'D'))
as sum_amt_demo
from tblMG_PA_IFA_Names a
where
((IFA >= '500' and IFA <= '599') or IFA = '101') and
Timestamp_To = '31-DEC-9999'
GO
CREATE VIEW VWMG_PM_IFAS2 ( FIRM, EXCEPTION, BRBASE, TYPE, TIMESTAMP_TO, AGE,
SHORTNAME, CCY, AMOUNT, MARGIN_TD_BALANCE, TIMESTAMP_FROM )
AS
select
a.Firm as Firm,
a.Exception as Exception,
a.Brbase as Brbase,
(case when a.Exception = '566' then 'TIMS'
when a.Exception = '567' and a.Type = 'B' then 'TIMS'
when a.Exception = '567' and a.Type = 'D' then 'DBX'
else ' ' end) as Type,
a.Timestamp_To as Timestamp_To,
a.Age as Age,
a.Shortname as Shortname,
a.Ccy as Ccy,
a.Amount as Amount,
coalesce(b.Margin_TD_Balance, 0) as Margin_TD_Balance,
a.Timestamp_From as Timestamp_From
from tblMG_IFA a left outer join tblMG_SMAWork b on
a.Brbase = b.Brbase and
a.Timestamp_To = b.Timestamp_To and
a.Firm = b.Firm
GO

CREATE UNIQUE INDEX PKMG_AWAYTRADES


ON TBLMG_AWAYTRADES(ENTRY_DATE, REFERENCE_NUMBER, REFERENCE_SUFFIX)
GO
CREATE INDEX PRIMARYKEY
ON TBLMG_BK_HISTORY(FIRM, BRBASE, ENTRY_DATE, CUSIP, TYPE,
REFERENCE_NUMBER, REFERENCE_SUFFIX)
GO
CREATE UNIQUE INDEX PKCOUNTRYCODES
ON TBLMG_COUNTRY_CODES(COUNTRY_CODE)
GO
CREATE UNIQUE INDEX PKMG_CNTRY
ON TBLMG_COUNTRY_CODES(COUNTRY_CODE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_DBX_FX_REQTS
ON TBLMG_DBX_FX_REQTS(BRBASE, CCY)
GO
CREATE UNIQUE INDEX PKMG_DBX_FX_REQTS_M2
ON TBLMG_DBX_FX_REQTS_M2(BRBASE, CCY)
GO
CREATE UNIQUE INDEX PKMG_FT
ON TBLMG_FILE_TABLE(JOB, STEP, LOGICAL)
GO
CREATE UNIQUE INDEX PKMG_FN
ON TBLMG_FIRM_NAMES(FIRM_CODE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_GTY
ON TBLMG_GUARANTEED_ACCOUNTS(FIRM, BRBASEA, BRBASEB, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_HEDGES
ON TBLMG_HEDGES(FIRM, BRBASE, UNDER_CUSIP, SEQUENCE)
GO
CREATE UNIQUE INDEX PKMG_HOLIDAY
ON TBLMG_HOLIDAY(HOLIDAY_DATE, TIMESTAMP_TO)
GO
CREATE INDEX IDX_IFA_EXCEPTION
ON TBLMG_IFA(EXCEPTION, TIMESTAMP_TO)
GO
CREATE INDEX IDXNA_COUNTRY
ON TBLMG_NA(COUNTRY)
GO
CREATE UNIQUE INDEX PKMG_NA_PB
ON TBLMG_NA_PB(FIRM, BRBASE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_NOTEPAD
ON TBLMG_NOTEPAD(FIRM, BRBASE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_TBLMG_NT_ETFS
ON TBLMG_NT_ETFS(CUSIP)
GO
CREATE UNIQUE INDEX PKMG_PA_BR
ON TBLMG_PA_BOND_RATINGS(FIRM, SEQUENCE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_PA_BRQ
ON TBLMG_PA_BOND_REQUIREMENTS(FIRM, PA_BOND_SEQ, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_PA_DATE
ON TBLMG_PA_DATE(PA_KEY)
GO
CREATE INDEX PKMG_PA_DAY_TRADE_REQTS
ON TBLMG_PA_DAY_TRADE_REQTS(FIRM, SECTYPE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX SYS_C0091161
ON TBLMG_PA_DBAG_EQUITY_RQMTS(FIRM, PA_EQUITY_SEQUENCE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_PA_EQRQ
ON TBLMG_PA_EQUITY_REQUIREMENTS(FIRM, PA_EQUITY_SEQUENCE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_IFA_ASSIGN
ON TBLMG_PA_IFA_ASSIGNMENTS(RECIPIENT_NUMBER, IFA, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_IFA_NAMES
ON TBLMG_PA_IFA_NAMES(IFA, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX TBLMG_PA_IFA_RECIPIENTS
ON TBLMG_PA_IFA_RECIPIENTS(FIRM, RECIPIENT_NUMBER, TIMESTAMP_TO,
USER_ACCESS_ID, FROMBRBASE, TOBRBASE)
GO
CREATE UNIQUE INDEX PKMG_PA_NUMCNST
ON TBLMG_PA_NUMERIC_CONSTANTS(FIRM, CONSTANT_KEY, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_PA_OPTRQ
ON TBLMG_PA_OPTION_REQUIREMENTS(FIRM, PA_OPTION_SEQ, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_PA_PCTCONST
ON TBLMG_PA_PERCENT_CONSTANTS(FIRM, PA_PERCENT_KEY, TIMESTAMP_TO)
GO
CREATE INDEX IXMG_PM_2
ON TBLMG_PM(CONC, BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP, CLASS_GROUP,
ANS_VOL, ANS_COL, SECTYPE)
GO
CREATE INDEX IXMG_PM_6
ON TBLMG_PM(CONC, BRBASE, CUSIP, TYPE, CLASS_GROUP, UNDER_SYM, SYM)
GO
CREATE INDEX PKMG_PM_CG
ON TBLMG_PM(CONC, BRBASE, UNDER_SYM, CLASS_GROUP)
GO
CREATE INDEX IXMG_PM_8
ON TBLMG_PM(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP, CLASS_GROUP, ANS_VOL,
ANS_COL, SECTYPE)
GO
CREATE INDEX IXMG_PM_3
ON TBLMG_PM(CONC, BRBASE, TYPE, CLASS_GROUP, UNDER_SYM, SYM)
GO
CREATE INDEX IXMG_PM_5
ON TBLMG_PM(CONC, BRBASE, CUSIP, CLASS_GROUP)
GO
CREATE UNIQUE INDEX PKMG_PM
ON TBLMG_PM(CONC, BRBASE, TYPE, UNDER_SYM, SYM, CUSIP)
GO
CREATE INDEX IXMG_PM_7
ON TBLMG_PM(CONC, BRBASE, CLASS_GROUP, UNDER_SYM)
GO
CREATE INDEX IXMG_PM_4
ON TBLMG_PM(CONC, BRBASE, UNDER_CUSIP, SYM)
GO
CREATE INDEX IXMG_PM_ACCOUNTS
ON TBLMG_PM_ACCOUNTS(FIRM, BRBASE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_PM_CONSTANTS
ON TBLMG_PM_CONSTANTS(FIRM, CONSTANT_KEY, TIMESTAMP_TO)
GO
CREATE INDEX IXMG_PM_SUMMARY_1
ON TBLMG_PM_SUMMARY(BRBASE, ANS_VOL, ANS_COL)
GO
CREATE INDEX IKMG_PM_SUMMARY_5
ON TBLMG_PM_SUMMARY(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP, ANS_VOL,
ANS_COL)
GO
CREATE INDEX IXMG_PM_SUMMARY_3
ON TBLMG_PM_SUMMARY(TOT_REQT)
GO
CREATE INDEX IXMG_PM_SUMMARY_2
ON TBLMG_PM_SUMMARY(CLASS_GROUP)
GO
CREATE UNIQUE INDEX PKMG_PM_SUMMARY
ON TBLMG_PM_SUMMARY(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP, CLASS_GROUP,
ANS_VOL, ANS_COL)
GO
CREATE INDEX IXMG_PM_SUMMARY_4
ON TBLMG_PM_SUMMARY(BRBASE, PORTFOLIO_GROUP, ANS_VOL, ANS_COL)
GO
CREATE UNIQUE INDEX PKMG_PM_SUMMARY_CONC
ON TBLMG_PM_SUMMARY_CONC(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP,
CLASS_GROUP, ANS_VOL, ANS_COL)
GO
CREATE UNIQUE INDEX PKMG_PM_SUMMARY_CONC_M2
ON TBLMG_PM_SUMMARY_CONC_M2(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP,
CLASS_GROUP, ANS_VOL, ANS_COL)
GO
CREATE UNIQUE INDEX PKMG_PM_SUMMARY_M2
ON TBLMG_PM_SUMMARY_M2(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP,
CLASS_GROUP, ANS_VOL, ANS_COL)
GO
CREATE UNIQUE INDEX PKMG_PM_SUM_OFFSETS
ON TBLMG_PM_SUM_OFFSETS(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP)
GO
CREATE UNIQUE INDEX PKMG_PM_SUM_OFFSETS_CONC
ON TBLMG_PM_SUM_OFFSETS_CONC(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP)
GO
CREATE UNIQUE INDEX PKMG_PM_SUM_OFFSETS_CONC_M2
ON TBLMG_PM_SUM_OFFSETS_CONC_M2(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP)
GO
CREATE UNIQUE INDEX PKMG_PM_SUM_OFFSETS_M2
ON TBLMG_PM_SUM_OFFSETS_M2(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP)
GO
CREATE INDEX IXMG_STATUS
ON TBLMG_QUEUE_CONTROL(STATUS)
GO
CREATE UNIQUE INDEX PKMG_QCTL
ON TBLMG_QUEUE_CONTROL(REQUESTID)
GO
CREATE INDEX IXMG_USER
ON TBLMG_QUEUE_CONTROL(USERID)
GO
CREATE INDEX IDXMG_REGU
ON TBLMG_REG_U_ACCOUNTS(FROMBRBASE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_REGU
ON TBLMG_REG_U_ACCOUNTS(FIRM, FROMBRBASE, TOBRBASE, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_RPTCTL
ON TBLMG_REPORT_CONTROL(FIRM, USERID1, REPORT, TIMESTAMP_TO)
GO
CREATE INDEX IXMG_RPTCTL
ON TBLMG_REPORT_CONTROL(REPORT, USERID1)
GO
CREATE UNIQUE INDEX PKMG_RPTNAMES
ON TBLMG_REPORT_NAMES(REPORT, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_SHUFFMAST
ON TBLMG_SHUFFLE_MASTERS(G0)
GO
CREATE INDEX IDXSM_SYMBOL
ON TBLMG_SM(CUSIP, TIMESTAMP_TO, SYMBOL)
GO
CREATE INDEX IDXSM_ADP_NUMBER
ON TBLMG_SM(TIMESTAMP_TO, ADP_NUMBER)
GO
CREATE INDEX IXMG_SYMBOL
ON TBLMG_SM_SUPPLEMENT(SYMBOL, CUSIP)
GO
CREATE UNIQUE INDEX PKMG_SPCMGN
ON TBLMG_SPECIAL_MARGIN(BRBASE, TYPE, CUSIP, LS, QUANTITY, PRICE_FROM,
PRICE_TO, PRICE_CURRENCY)
GO
CREATE UNIQUE INDEX PKMG_SPOTRATES
ON TBLMG_SPOT_RATES(ISO, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_EXTRACT
ON TBLMG_TRACKED_CUSIPS(FIRM, CUSIP, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_UNMATCHED_REQTS
ON TBLMG_UNMATCHED_REQTS(BRBASE, CUSIP, CLASS_GROUP, UNDER_SYM)
GO
CREATE UNIQUE INDEX PKMG_UNMATCHED_REQTS_M2
ON TBLMG_UNMATCHED_REQTS_M2(BRBASE, CUSIP, CLASS_GROUP, UNDER_SYM)
GO
CREATE UNIQUE INDEX PKMG_USERACC
ON TBLMG_USER_ACCESS(FIRM, USER_ID, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_UMENUFORWEB
ON TBLMG_USER_MENUS_FOR_WEB(USER_ACCESS_COLUMN)
GO
CREATE UNIQUE INDEX PKMG_WHIFFLEX
ON TBLMG_WHATIF_FLEX(FIRM, BRBASE, TYPE, CUSIP, LS, PRICE_FROM, PRICE_TO,
QUANTITY_FROM, QUANTITY_TO, CUSIP2, CNTRY_OF_ISSUE, EFFECTIVE_DATE_FROM,
EFFECTIVE_DATE_TO, TIMESTAMP_TO, SCENARIO_ID)
GO
CREATE INDEX IXMG_WHIFSCEN_USER
ON TBLMG_WHATIF_SCENARIOS(USERID, SCENARIO_TYPE)
GO
CREATE UNIQUE INDEX PKMG_WHIFSCEN
ON TBLMG_WHATIF_SCENARIOS(FIRM, SCENARIO_ID, TIMESTAMP_TO)
GO
CREATE UNIQUE INDEX PKMG_WHIFTRANS
ON TBLMG_WHATIF_TRANS(FIRM, ENTRY_DATE, SCENARIO_ID, REFERENCE_NUMBER,
TIMESTAMP_TO)
GO
CREATE INDEX IDX_WHIF_IFA_EXCEPTION_BRBASE
ON TBLMG_WHIF_IFA(EXCEPTION, TIMESTAMP_TO, BRBASE)
GO
CREATE INDEX IDX_WHIF_IFA_EXCEPTION
ON TBLMG_WHIF_IFA(EXCEPTION, TIMESTAMP_TO)
GO
CREATE INDEX PKMG_WHIF_PM_CG
ON TBLMG_WHIF_PM(CONC, BRBASE, UNDER_SYM, CLASS_GROUP)
GO
CREATE UNIQUE INDEX PKMG_WHIF_PM
ON TBLMG_WHIF_PM(CONC, BRBASE, TYPE, UNDER_SYM, SYM, CUSIP)
GO
CREATE INDEX IXMG_WHIF_PM_SUMMARY_3
ON TBLMG_WHIF_PM_SUMMARY(TOT_REQT)
GO
CREATE INDEX IXMG_WHIF_PM_SUMMARY_4
ON TBLMG_WHIF_PM_SUMMARY(BRBASE, PORTFOLIO_GROUP, ANS_VOL, ANS_COL)
GO
CREATE INDEX IXMG_WHIF_PM_SUMMARY_2
ON TBLMG_WHIF_PM_SUMMARY(CLASS_GROUP)
GO
CREATE INDEX IXMG_WHIF_PM_SUMMARY_1
ON TBLMG_WHIF_PM_SUMMARY(BRBASE, ANS_VOL, ANS_COL)
GO
CREATE UNIQUE INDEX PKMG_WHIF_PM_SUMMARY
ON TBLMG_WHIF_PM_SUMMARY(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP,
CLASS_GROUP, ANS_VOL, ANS_COL)
GO
CREATE UNIQUE INDEX PKMG_WHIF_PM_SUMMARY_CONC
ON TBLMG_WHIF_PM_SUMMARY_CONC(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP,
CLASS_GROUP, ANS_VOL, ANS_COL)
GO
CREATE UNIQUE INDEX PKMG_WHIF_PM_SUM_OFFSETS
ON TBLMG_WHIF_PM_SUM_OFFSETS(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP)
GO
CREATE UNIQUE INDEX PKMG_WHIF_PM_SUM_OFFSETS_CONC
ON TBLMG_WHIF_PM_SUM_OFFSETS_CONC(BRBASE, PORTFOLIO_GROUP, PRODUCT_GROUP)
GO
ALTER TABLE TBLMG_AWAYTRADES
ADD ( CONSTRAINT PKMG_AWAYTRADES
PRIMARY KEY (ENTRY_DATE, REFERENCE_NUMBER, REFERENCE_SUFFIX)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_BK
ADD ( CONSTRAINT SYS_C0035081
PRIMARY KEY (ENTRY_DATE, REFERENCE_NUMBER, REFERENCE_SUFFIX, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_BK_CONVERSION
ADD ( CONSTRAINT SYS_C0035082
PRIMARY KEY (FIRM, ENTRY_DATE, REFERENCE_NUMBER, REFERENCE_SUFFIX,
TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_BONDS_NOT_RCONV
ADD ( CONSTRAINT SYS_C0035318
PRIMARY KEY (FIRM, CUSIP, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_COMBINED_ACCOUNTS
ADD ( CONSTRAINT SYS_C0035083
PRIMARY KEY (FIRM, FROMBRBASE, TOBRBASE, TIMESTAMP_TO, COMBINEDBRBASE)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_CONCERT_ACCOUNTS
ADD ( CONSTRAINT SYS_C0035084
PRIMARY KEY (FIRM, FROMBRBASE, TOBRBASE, BRBASE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_COUNTRY_CODES
ADD ( CONSTRAINT PKMG_CNTRY
PRIMARY KEY (COUNTRY_CODE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_FILE_TABLE
ADD ( CONSTRAINT PKMG_FT
PRIMARY KEY (JOB, STEP, LOGICAL)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_FILE_TABLE_20081114
ADD ( CONSTRAINT SYS_C0035314
PRIMARY KEY (JOB, STEP, LOGICAL)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_FIRM_NAMES
ADD ( CONSTRAINT PKMG_FN
PRIMARY KEY (FIRM_CODE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_FLEX_REQUIREMENTS
ADD ( CONSTRAINT SYS_C0035076
PRIMARY KEY (FIRM, BRBASE, TYPE, CUSIP, LS, PRICE_FROM, PRICE_TO,
QUANTITY_FROM, QUANTITY_TO, CUSIP2, CNTRY_OF_ISSUE, EFFECTIVE_DATE_FROM,
EFFECTIVE_DATE_TO, TIMESTAMP_FROM)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_FLEX_REQUIREMENTS_JD
ADD ( CONSTRAINT SYS_C0035058
PRIMARY KEY (FIRM, BRBASE, TYPE, CUSIP, LS, PRICE_FROM, PRICE_TO,
QUANTITY_FROM, QUANTITY_TO, CUSIP2, CNTRY_OF_ISSUE, EFFECTIVE_DATE_FROM,
EFFECTIVE_DATE_TO, TIMESTAMP_FROM)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_GUARANTEED_ACCOUNTS
ADD ( CONSTRAINT PKMG_GTY
PRIMARY KEY (FIRM, BRBASEA, BRBASEB, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_HEDGES
ADD ( CONSTRAINT PKMG_HEDGES
PRIMARY KEY (FIRM, BRBASE, UNDER_CUSIP, SEQUENCE)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_HOLIDAY
ADD ( CONSTRAINT PKMG_HOLIDAY
PRIMARY KEY (HOLIDAY_DATE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_IFA
ADD ( CONSTRAINT SYS_C0039802
PRIMARY KEY (FIRM, BRBASE, TYPE, EXCEPTION, CUSIP, RRN, TIMESTAMP_FROM,
TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_NA
ADD ( CONSTRAINT SYS_C0035078
PRIMARY KEY (FIRM, BRBASE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_NOTEPAD
ADD ( CONSTRAINT PKMG_NOTEPAD
PRIMARY KEY (FIRM, BRBASE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_BOND_RATINGS
ADD ( CONSTRAINT PKMG_PA_BR
PRIMARY KEY (FIRM, SEQUENCE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_BOND_REQUIREMENTS
ADD ( CONSTRAINT PKMG_PA_BRQ
PRIMARY KEY (FIRM, PA_BOND_SEQ, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_DATE
ADD ( CONSTRAINT PKMG_PA_DATE
PRIMARY KEY (PA_KEY)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_DBAG_EQUITY_RQMTS
ADD ( CONSTRAINT SYS_C0091161
PRIMARY KEY (FIRM, PA_EQUITY_SEQUENCE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_EQUITY_REQUIREMENTS
ADD ( CONSTRAINT PKMG_PA_EQRQ
PRIMARY KEY (FIRM, PA_EQUITY_SEQUENCE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_IFA_ASSIGNMENTS
ADD ( CONSTRAINT PKMG_IFA_ASSIGN
PRIMARY KEY (RECIPIENT_NUMBER, IFA, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_IFA_NAMES
ADD ( CONSTRAINT PKMG_IFA_NAMES
PRIMARY KEY (IFA, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_IFA_RECIPIENTS
ADD ( CONSTRAINT TBLMG_PA_IFA_RECIPIENTS
PRIMARY KEY (FIRM, RECIPIENT_NUMBER, TIMESTAMP_TO, USER_ACCESS_ID,
FROMBRBASE, TOBRBASE)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_NUMERIC_CONSTANTS
ADD ( CONSTRAINT PKMG_PA_NUMCNST
PRIMARY KEY (FIRM, CONSTANT_KEY, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_OPTION_REQUIREMENTS
ADD ( CONSTRAINT PKMG_PA_OPTRQ
PRIMARY KEY (FIRM, PA_OPTION_SEQ, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PA_PERCENT_CONSTANTS
ADD ( CONSTRAINT PKMG_PA_PCTCONST
PRIMARY KEY (FIRM, PA_PERCENT_KEY, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_PRICES
ADD ( CONSTRAINT SYS_C0035079
PRIMARY KEY (CUSIP, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_QUEUE_CONTROL
ADD ( CONSTRAINT PKMG_QCTL
PRIMARY KEY (REQUESTID)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_REG_U_ACCOUNTS
ADD ( CONSTRAINT PKMG_REGU
PRIMARY KEY (FIRM, FROMBRBASE, TOBRBASE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_REPORT_CONTROL
ADD ( CONSTRAINT PKMG_RPTCTL
PRIMARY KEY (FIRM, USERID1, REPORT, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_REPORT_NAMES
ADD ( CONSTRAINT PKMG_RPTNAMES
PRIMARY KEY (REPORT, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_SHUFFLE_MASTERS
ADD ( CONSTRAINT PKMG_SHUFFMAST
PRIMARY KEY (G0)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_SM
ADD ( CONSTRAINT SYS_C0035075
PRIMARY KEY (CUSIP, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_SMAWORK
ADD ( CONSTRAINT SYS_C0035085
PRIMARY KEY (FIRM, BRBASE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_SMAWORK_M2
ADD ( CONSTRAINT SYS_C0035312
PRIMARY KEY (FIRM, BRBASE, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_SM_SUPPLEMENT
ADD ( CONSTRAINT SYS_C0035080
PRIMARY KEY (CUSIP, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_SPECIAL_MARGIN
ADD ( CONSTRAINT PKMG_SPCMGN
PRIMARY KEY (BRBASE, TYPE, CUSIP, LS, QUANTITY, PRICE_FROM, PRICE_TO,
PRICE_CURRENCY)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_SPOT_RATES
ADD ( CONSTRAINT PKMG_SPOTRATES
PRIMARY KEY (ISO, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_UNDERCUSIP
ADD ( CONSTRAINT SYS_C0035077
PRIMARY KEY (CUSIP, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_USER_ACCESS
ADD ( CONSTRAINT PKMG_USERACC
PRIMARY KEY (FIRM, USER_ID, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_USER_MENUS_FOR_WEB
ADD ( CONSTRAINT PKMG_UMENUFORWEB
PRIMARY KEY (USER_ACCESS_COLUMN)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_WHATIF_FLEX
ADD ( CONSTRAINT PKMG_WHIFFLEX
PRIMARY KEY (FIRM, BRBASE, TYPE, CUSIP, LS, PRICE_FROM, PRICE_TO,
QUANTITY_FROM, QUANTITY_TO, CUSIP2, CNTRY_OF_ISSUE, EFFECTIVE_DATE_FROM,
EFFECTIVE_DATE_TO, TIMESTAMP_TO, SCENARIO_ID)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_WHATIF_SCENARIOS
ADD ( CONSTRAINT PKMG_WHIFSCEN
PRIMARY KEY (FIRM, SCENARIO_ID, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_WHATIF_TRANS
ADD ( CONSTRAINT PKMG_WHIFTRANS
PRIMARY KEY (FIRM, ENTRY_DATE, REFERENCE_NUMBER, TIMESTAMP_TO,
SCENARIO_ID)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_WHIF_IFA
ADD ( CONSTRAINT SYS_C0035319
PRIMARY KEY (FIRM, BRBASE, TYPE, EXCEPTION, CUSIP, RRN, TIMESTAMP_TO)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO
ALTER TABLE TBLMG_NT_ETFS
ADD ( CONSTRAINT PKMG_TBLMG_NT_ETFS
UNIQUE (CUSIP)
NOT DEFERRABLE INITIALLY IMMEDIATE )
GO