CREATE TABLE cn_tp_sim_pc_results_all (
    SIM_PC_RESULT_ID             NUMBER(18, 0),
    SIMULATION_ID                NUMBER(18, 0)    NOT NULL,
    ORG_ID                       NUMBER(18, 0)    NOT NULL,
    SRP_COMP_PLAN_ID             NUMBER(18, 0),
    COMP_PLAN_ID                 NUMBER(18, 0),
    PLAN_COMPONENT_ID            NUMBER(18, 0),
    FORMULA_ID                   NUMBER(18, 0),
    PAY_PERIOD_ID                NUMBER(18, 0),
    CURRENT_EARNINGS_SUM_CALC    NUMBER       ,
    CURRENT_EARNINGS_SUM_HOME    NUMBER       ,
    CURRENT_EARNINGS_SUM_FUNC    NUMBER       ,
    GAIN_SUM_CALC                NUMBER       ,
    GAIN_SUM_HOME                NUMBER       ,
    GAIN_SUM_FUNC                NUMBER       ,
    CALC_CURRENCY_CODE           VARCHAR2(60) ,
    HOME_CURRENCY_CODE           VARCHAR2(60) ,
    CREATED_BY                   VARCHAR2(256)    NOT NULL,
    CREATION_DATE                TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE             TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128),
    SIM_PC_RESULT_ID             NUMBER(18, 0),
    SIMULATION_ID                NUMBER(18, 0)    NOT NULL,
    ORG_ID                       NUMBER(18, 0)    NOT NULL,
    SRP_COMP_PLAN_ID             NUMBER(18, 0),
    COMP_PLAN_ID                 NUMBER(18, 0),
    PLAN_COMPONENT_ID            NUMBER(18, 0),
    FORMULA_ID                   NUMBER(18, 0),
    PAY_PERIOD_ID                NUMBER(18, 0),
    CURRENT_EARNINGS_SUM_CALC    NUMBER       ,
    CURRENT_EARNINGS_SUM_HOME    NUMBER       ,
    CURRENT_EARNINGS_SUM_FUNC    NUMBER       ,
    GAIN_SUM_CALC                NUMBER       ,
    GAIN_SUM_HOME                NUMBER       ,
    GAIN_SUM_FUNC                NUMBER       ,
    CALC_CURRENCY_CODE           VARCHAR2(60) ,
    HOME_CURRENCY_CODE           VARCHAR2(60) ,
    CREATED_BY                   VARCHAR2(256)    NOT NULL,
    CREATION_DATE                TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE             TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128),
    CONSTRAINT pk_cn_tp_sim_pc_results_all PRIMARY KEY (SIM_PC_RESULT_ID, SIM_PC_RESULT_ID)
);
