Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Performance Analysis report uses a dictionary to record the structure of the Performance data. For example, Fund/Country/Sector is a different structure than Fund/Sector/Country. If you use the Performance calculator, you do not need to set up these dictionaries. The Performance commit process creates them. If you are only going to be using the dynamic Mutual Fund returns fields, you need to set one up using these SQL statements:

  1. Find the next instance for dictionary_id:

     

...

  1.  SELECT

...

  1. *

...

  1. FROM

...

  1. NEXT_INSTANCE

...

  1. WHERE

...

  1. TABLE_NAME

...

  1. LIKE

...

  1. 'RULESDBO.DICTIONARIES

  2. Insert into the dictionary_table using dictionary_id from the last query + 1:
    insert into rulesdbo.dictionaries ( Dictionary_ID, Dictionary_name, Dictionary_type, UPDATE_DATE )values ( 4, 'Mutual Fund Perf Model', 'P', SYSDATE)INSERT INTO RULESDBO.DICTIONARY_FORMAT
    ( Dictionary_ID, Dictionary_Level, Field_attribute_ID, Dictionary_Level_Desc)VALUES(4, 1, -1, 'TOTAL')

  3. Find

...

  1. the

...

  1. next

...

  1. instance

...

  1. for

...

  1. dictionary_detail_id:
    SELECT

...

  1. *

...

  1. FROM

...

  1. NEXT_INSTANCE

...

  1. WHERE

...

  1. TABLE_NAME

...

  1. =

...

  1. 'RULESDBO.DICTIONARY_DETAIL'

...

  1. ;

  2. Add

...

  1. 1

...

  1. to

...

  1. the

...

  1. result

...

  1. and

...

  1. insert

...

  1. into

...

  1. dictionary_detail:INSERT

...

  1. INTO

...

  1. RULESDBO.DICTIONARY_DETAIL(Dictionary_ID,

...

  1. Dictionary_Detail_id,

...

  1. Dict_L1_Code_value,

...

  1. Dict_L2_Code_value,

...

  1. Dict_L3_Code_value,

...

  1. dictionary_item_id

...

  1. ,

...

  1. SOURCE_CODE_ID)

...

  1. VALUES

...

  1. (4,

...

  1. 2,

...

  1. 'TOTAL',

...

  1. NULL,

...

  1. NULL,

...

  1. 1,

...

  1. 10

...

  1. )

  2. Update the NEXT_INSTANCE table:

    UPDATE

...

  1. NEXT_INSTANCE
    SET

...

  1. NEXT_INST

...

  1. =

...

  1. (

...

  1. NEXT_INST

...

  1. +

...

  1. 1)WHERE

...

  1. TABLE_NAME

...

  1. IN(

...

  1. 'RULESDBO.DICTIONARIES',

...

  1. 'RULESDBO.DICTIONARY_DETAIL'

...

  1. )

...

  1. ;