test cases

Upload: magesh-kumar

Post on 07-Oct-2015

19 views

Category:

Documents


0 download

DESCRIPTION

Test cases

TRANSCRIPT

Sheet1S. NoTesting ScenarioTestCase NoTesting ExecutionExpected ResultActual ResultPass/ FailMaster SOD1.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.01. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination2.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.11. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", ="Loan" , Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination3.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.21. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination4.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.31. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination5.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.41. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination6.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.51. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination7.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.61. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination8.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.71. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If Current_total_indem_qty < 0 , then current_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination9.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.81. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination10.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.91. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination11.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.101. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination12.Master_SOD_Loan_AggregationMaster_SOD_Loan_1.111. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination13.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.01. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination14.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.11. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination15.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.21. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination16.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.31. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination17.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.41. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination18.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.51. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination19.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.61. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination20.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.71. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If Current_total_indem_qty < 0 , then current_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination21.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.81. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination22.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.91. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present for that master netting set Id with the asset Id and its combination.23.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.101. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination24.Master_SOD_Repo_AggregationMaster_SOD_Repo_1.111. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination25.Master_SOD_Loan_Trade_CountMaster_SOD_Count1.01.Get the trade count of SOD_INDEM_INCREMENT = "Y" from trade_aggregate. And insert a new record for the this in Agency_netting_set_countsA record should be present for that master netting set Id with the data comparision of trade_aggreagate with Trade Type = "C"Master_SOD_Loan_Trade_CountMaster_SOD_Count1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" from trade_aggregate. If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the new trade count in th exisiti ng count26.Master_SOD_Loan_Trade_CountMaster_Current_Count1.01.Get the trade count of Current_INDEM_INCREMENT = "Y" from trade_aggregate. And insert a new record for the this in Agency_netting_set_countsA record should be present for that master netting set Id with the data comparision of trade_aggreagate with Trade Type = "C"26.Master_SOD_Loan_Trade_CountMaster_Current_Count1.11.Get the trade count of Current_INDEM_INCREMENT = "Y" from trade_aggregate. If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the new trade count in th exisiti ng count25.Master_SOD_Repo_Trade_CountMaster_SOD_Count1.01.Get the trade count of SOD_INDEM_INCREMENT = "Y " from trade_aggregate. And insert a new record for the this in Agency_netting_set_countsA record should be present for that master netting set Id with the data comparision of trade_aggreagate with Trade Type = "C"25.Master_SOD_Repo_Trade_CountMaster_SOD_Count1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the new trade count in th exisiti ng count26.Master_SOD_Repo_Trade_CountMaster_Current_Count1.01.Get the trade count of Current_INDEM_INCREMENT = "Y" from trade_aggregate. And insert a new record for the this in Agency_netting_set_countsA record should be present for that master netting set Id with the data comparision of trade_aggreagate with Trade Type = "C"26.Master_SOD_Repo_Trade_CountMaster_Current_Count1.11.Get the trade count of Current_INDEM_INCREMENT = "Y"from trade_aggregate.. If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the new trade count in th exisiti ng countMaster_Intraday27.Master_IntraDay_New_Loan_AggregationMaster_IntraDay_Loan_Add_1.01. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination28Master_IntraDay_New_Loan_AggregationMaster_IntraDay_Loan_Add_1.11. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination29Master_IntraDay_New_Loan_AggregationMaster_IntraDay_Loan_Add_1.21. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination30Master_IntraDay_New_Loan_AggregationMaster_IntraDay_Loan_Add_1.31. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination31Master_IntraDay_New_Loan_AggregationMaster_IntraDay_Loan_Add_1.41. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination32Master_IntraDay_New_Loan_AggregationMaster_IntraDay_Loan_Add_1.51. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination33Master_IntraDay_Update_Loan_AggregationMaster_IntraDay_Loan_Update_1.01. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition ,Update the Record if already exisits Trade_Aggregate , Agency_netting_Set_CountsTrade_Aggregate , Agency_netting_Set_CountsUpdate the Aggregate data record with Trade count40.Master_IntraDay_Update_Loan_AggregationMaster_IntraDay_Loan_Update_1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If No record presents in Agency_Netting_set_count , Insert a record with new Trade countInsert the Aggregate data record with Trade count40.Master_IntraDay_Update_LOan_AggregationMaster_IntraDay_Loan_Update_1.21.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the Aggregate data record with Trade count34.Master_IntraDay_New_Repo_AggregationMaster_IntraDay_Repo_Add_1.01. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination35.Master_IntraDay_New_Repo_AggregationMaster_IntraDay_Repo_Add_1.11. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination36.Master_IntraDay_New_Repo_AggregationMaster_IntraDay_Repo_Add_1.21. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination37.Master_IntraDay_New_Repo_AggregationMaster_IntraDay_Repo_Add_1.31. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination38.Master_IntraDay_New_Repo_AggregationMaster_IntraDay_Repo_Add_1.41. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination39.Master_IntraDay_New_Repo_AggregationMaster_IntraDay_Repo_Add_1.51. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination40.Master_IntraDay_Update_Repo_AggregationMaster_IntraDay_Repo_Update_1.1. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Update the Record if already exisits Trade_Aggregate , Agency_netting_Set_CountsTrade_Aggregate , Agency_netting_Set_CountsUpdate the Aggregate data record with Trade count40.Master_IntraDay_Update_Repo_AggregationMaster_IntraDay_Repo_Update_1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If No record presents in Agency_Netting_set_count , Insert a record with new Trade countInsert the Aggregate data record with Trade count40.Master_IntraDay_Update_Repo_AggregationMaster_IntraDay_Repo_Update_1.21.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the Aggregate data record with Trade countMaster_EOD41MasterEOD_New_Loan_AggregationMaster_EOD_Loan_Update_1.01. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Loan" and its combination42Master_EOD_Update_Loan_AggregationMaster_EOD_Loan_Update_1.01. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Update the Record if already exisits Trade_Aggregate , Agency_netting_Set_Countsin Trade_Aggregate , Agency_netting_Set_CountsUpdate the Aggregate data record with Trade count40.Master_EOD_Update_Loan_AggregationMaster_EOD_Loan_Update_1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If No record presents in Agency_Netting_set_count , Insert a record with new Trade countInsert the Aggregate data record with Trade count40.Master_EOD_Update_Loan_AggregationMaster_EOD_Loan_Update_1.21.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the Aggregate data record with Trade count43Master_EOD_New_Repo_AggregationMaster_EOD_Repo_Update_1.01. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that master netting set Id with the asset Id, Trade type = "Repo" and its combination44Master_EOD_Update_Repo_AggregationMaster_EOD_Repo_Update_1.01. Get the Master type Netting data from Netting_set , where Netting Set type = "MAS", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Update the Record if already exisits Trade_Aggregate , Agency_netting_Set_CountsTrade_Aggregate , Agency_netting_Set_CountsUpdate the Aggregate data record with Trade count40.Master_EOD_Update_Repo_AggregationMaster_EOD_Repo_Update_1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If No record presents in Agency_Netting_set_count , Insert a record with new Trade countInsert the Aggregate data record with Trade count40.Master_EOD_Update_Repo_AggregationMaster_EOD_Repo_Update_1.21.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the Aggregate data record with Trade countContract_SOD46Contract_SOD_Loan_AggregationContract_SOD_Loan_1.11. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination47Contract_SOD_Loan_AggregationContract_SOD_Loan_1.21. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination48Contract_SOD_Loan_AggregationContract_SOD_Loan_1.31. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination49Contract_SOD_Loan_AggregationContract_SOD_Loan_1.41. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination50Contract_SOD_Loan_AggregationContract_SOD_Loan_1.51. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination51Contract_SOD_Loan_AggregationContract_SOD_Loan_1.61. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination52Contract_SOD_Loan_AggregationContract_SOD_Loan_1.71. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If Current_total_indem_qty < 0 , then current_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination53Contract_SOD_Loan_AggregationContract_SOD_Loan_1.81. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination54Contract_SOD_Loan_AggregationContract_SOD_Loan_1.91. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination55Contract_SOD_Loan_AggregationContract_SOD_Loan_1.101. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination56Contract_SOD_Loan_AggregationContract_SOD_Loan_1.111. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination57Contract_SOD_Repo_AggregationContract_SOD_Repo_1.01. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination58Contract_SOD_Repo_AggregationContract_SOD_Repo_1.11. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination59Contract_SOD_Repo_AggregationContract_SOD_Repo_1.21. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination60Contract_SOD_Repo_AggregationContract_SOD_Repo_1.31. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination61Contract_SOD_Repo_AggregationContract_SOD_Repo_1.41. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination62Contract_SOD_Repo_AggregationContract_SOD_Repo_1.51. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination63Contract_SOD_Repo_AggregationContract_SOD_Repo_1.61. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination64Contract_SOD_Repo_AggregationContract_SOD_Repo_1.71. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If Current_total_indem_qty < 0 , then current_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination65Contract_SOD_Repo_AggregationContract_SOD_Repo_1.81. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination66Contract_SOD_Repo_AggregationContract_SOD_Repo_1.91. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination67Contract_SOD_Repo_AggregationContract_SOD_Repo_1.101. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination68Contract_SOD_Repo_AggregationContract_SOD_Repo_1.111. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination69Contract_SOD_Loan_Trade_CountContract_SOD_Count1.01.Get the trade count of SOD_INDEM_INCREMENT = "Y" from trade_aggregate. And insert a new record for the this in Agency_netting_set_countsA record should be present for that contract netting set Id with the comparision of trade_aggregate for Loan69Contract_SOD_Loan_Trade_CountContract_SOD_Count1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" from trade_aggregate. If already a record exists for the record , Update the trade countUpdate the trade count for the Aggregate70Contract_SOD_Loan_Trade_CountContract_Current_Count1.21.Get the trade count of Current_INDEM_INCREMENT = "Y" from trade_aggregate. And insert a new record for the this in Agency_netting_set_countsA record should be present for that contract netting set Id with the comparision of trade_aggregate for Loan70Contract_SOD_Loan_Trade_CountContract_Current_Count1.31.Get the trade count of Current_INDEM_INCREMENT = "Y" from trade_aggregate.. If already a record exists for the record , Update the trade countUpdate the trade count for the Aggregate71Contract_SOD_Repo_Trade_CountContract_SOD_Count1.01.Get the trade count of SOD_INDEM_INCREMENT = "Y" from trade_aggregate. And insert a new record for the this in Agency_netting_set_countsA record should be present for that contract netting set Id with the comparision of trade_aggregate for Repo71Contract_SOD_Repo_Trade_CountContract_SOD_Count1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" from trade_aggregate. If already a record exists for the record , Update the trade countUpdate the trade count for the Aggregate72Contract_SOD_Repo_Trade_CountContract_Current_Count1.21.Get the trade count of Current_INDEM_INCREMENT = "Y" from trade_aggregate. And insert a new record for the this in Agency_netting_set_countsA record should be present for that contract netting set Id with the comparision of trade_aggregate for Repo72Contract_SOD_Repo_Trade_CountContract_Current_Count1.31.Get the trade count of Current_INDEM_INCREMENT = "Y' from trade_aggregate. If already a record exists for the record , Update the trade countUpdate the trade count for the AggregateContract_Intraday73Contract_IntraDay_New_Loan_AggregationContract_IntraDay_Loan_Add_1.01. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination74Contract_IntraDay_New_Loan_AggregationContract_IntraDay_Loan_Add_1.11. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination75Contract_IntraDay_New_Loan_AggregationContract_IntraDay_Loan_Add_1.21. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination76Contract_IntraDay_New_Loan_AggregationContract_IntraDay_Loan_Add_1.31. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination77Contract_IntraDay_New_Loan_AggregationContract_IntraDay_Loan_Add_1.41. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination78Contract_IntraDay_New_Loan_AggregationContract_IntraDay_Loan_Add_1.51. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination79Contract_IntraDay_Update_Loan_AggregationContract_IntraDay_Loan_Update_1.01. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition ,Update the Record if already exisits Trade_Aggregate , Agency_netting_Set_CountsUpdate the Aggregate data record with Trade count40.Contract_IntraDay_Update_Loan_AggregationContract_IntraDay_Loan_Update_1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If No record presents in Agency_Netting_set_count , Insert a record with new Trade countInsert the Aggregate data record with Trade count40.Contract_IntraDay_Update_LOan_AggregationContract_IntraDay_Loan_Update_1.21.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the Aggregate data record with Trade count80Contract_IntraDay_New_Repo_AggregationContract_IntraDay_Repo_Add_1.01. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination81Contract_IntraDay_New_Repo_AggregationContract_IntraDay_Repo_Add_1.11. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination82Contract_IntraDay_New_Repo_AggregationContract_IntraDay_Repo_Add_1.21. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination83Contract_IntraDay_New_Repo_AggregationContract_IntraDay_Repo_Add_1.31. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination84Contract_IntraDay_New_Repo_AggregationContract_IntraDay_Repo_Add_1.41. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination85Contract_IntraDay_New_Repo_AggregationContract_IntraDay_Repo_Add_1.51. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination86Contract_IntraDay_Update_Repo_AggregationContract_IntraDay_Repo_Update_1.01. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Update the Record if already exisits Trade_Aggregate , Agency_netting_Set_CountsUpdate the Aggregate data record with Trade count40.Contract_IntraDay_Update_Repo_AggregationContract_IntraDay_Repo_Update_1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If No record presents in Agency_Netting_set_count , Insert a record with new Trade countInsert the Aggregate data record with Trade count40.Contract_IntraDay_Update_Repo_AggregationContract_IntraDay_Repo_Update_1.21.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the Aggregate data record with Trade countContract_EOD87Contract_EOD_New_Loan_AggregationContract_EOD_Loan_Update_1.01. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Loan" and its combination88Contract_EOD_Update_Loan_AggregationContract_EOD_Loan_Update_1.01. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Update the Record if already exisits Trade_Aggregate , Agency_netting_Set_CountsUpdate the Aggregate data record with Trade count40.Contract_EOD_Update_Loan_AggregationContract_EOD_Loan_Update_1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If No record presents in Agency_Netting_set_count , Insert a record with new Trade countInsert the Aggregate data record with Trade count40.Contract_EOD_Update_Loan_AggregationContract_EOD_Loan_Update_1.21.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the Aggregate data record with Trade count89Contract_EOD_New_Repo_AggregationContract_EOD_Repo_Update_1.01. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Contract netting set Id with the asset Id, Trade type = "Repo" and its combination90Contract_EOD_Update_Repo_AggregationContract_EOD_Repo_Update_1.01. Get the Contract type Netting data from Netting_set , where Netting Set type = "CON", CTPY_ENTITY_ID matching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition , Update the Record if already exisits Trade_Aggregate , Agency_netting_Set_CountsUpdate the Aggregate data record with Trade count40.Contract_EOD_Update_Repo_AggregationContract_EOD_Repo_Update_1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If No record presents in Agency_Netting_set_count , Insert a record with new Trade countInsert the Aggregate data record with Trade count40.Contract_EOD_Update_Repo_AggregationContract_EOD_Repo_Update_1.21.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the Aggregate data record with Trade countClient_SOD91Client_SOD_Loan_AggregationClient_SOD_Loan_1.01. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from tradematching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination92Client_SOD_Loan_AggregationClient_SOD_Loan_1.11. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination93Client_SOD_Loan_AggregationClient_SOD_Loan_1.21. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination94Client_SOD_Loan_AggregationClient_SOD_Loan_1.31. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination95Client_SOD_Loan_AggregationClient_SOD_Loan_1.41. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination96Client_SOD_Loan_AggregationClient_SOD_Loan_1.51. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination97Client_SOD_Loan_AggregationClient_SOD_Loan_1.61. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination98Client_SOD_Loan_AggregationClient_SOD_Loan_1.71. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If Current_total_indem_qty < 0 , then current_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination99Client_SOD_Loan_AggregationClient_SOD_Loan_1.81. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination100Client_SOD_Loan_AggregationClient_SOD_Loan_1.91. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination101Client_SOD_Loan_AggregationClient_SOD_Loan_1.101. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination102Client_SOD_Loan_AggregationClient_SOD_Loan_1.111. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination103Client_SOD_Repo_AggregationClient_SOD_Repo_1.01. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination104Client_SOD_Repo_AggregationClient_SOD_Repo_1.11. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination105Client_SOD_Repo_AggregationClient_SOD_Repo_1.21. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination106Client_SOD_Repo_AggregationClient_SOD_Repo_1.31. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination107Client_SOD_Repo_AggregationClient_SOD_Repo_1.41. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination108Client_SOD_Repo_AggregationClient_SOD_Repo_1.51. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination109Client_SOD_Repo_AggregationClient_SOD_Repo_1.61. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination110Client_SOD_Repo_AggregationClient_SOD_Repo_1.71. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund d 3. If Current_total_indem_qty < 0 , then current_INDEM_INCREMENT = "N" 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination111Client_SOD_Repo_AggregationClient_SOD_Repo_1.81. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty > 0 , then SOD_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination112Client_SOD_Repo_AggregationClient_SOD_Repo_1.91. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If SOD_total_indem_qty < 0 , then SOD_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination113Client_SOD_Repo_AggregationClient_SOD_Repo_1.101. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty > 0 , then Current_INDEM_INCREMENT = "Y" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination114Client_SOD_Repo_AggregationClient_SOD_Repo_1.111. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If Current_total_indem_qty < 0 , then Current_INDEM_INCREMENT = "N" 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Repo" and its combination115Client_SOD_Loan_Trade_CountClient_SOD_Count1.01.Get the trade count of SOD_INDEM_INCREMENT = "Y" from trade_aggregate. If no records present in Agency_netting_set_count , insert a new record for the this in Agency_netting_set_countsA record should be present for that Client netting set Id with the comparision of trade_aggregate for Loan115Client_SOD_Loan_Trade_CountClient_SOD_Count1.11.Get the trade count of SOD_INDEM_INCREMENT = " Y" from trade_aggregate. If records present in Agency_netting_set_count , update the record for the this in Agency_netting_set_countsUpdate the Table with new trade count116Client_SOD_Loan_Trade_CountClient_Current_Count1.21.Get the trade count of Current_INDEM_INCREMENT = "Y" from trade_aggregate. If no records present in Agency_netting_set_count , insert a new record for the this in Agency_netting_set_countsA record should be present for that Client netting set Id with the comparision of trade_aggregate for Loan116Client_SOD_Loan_Trade_CountClient_Current_Count1.31.Get the trade count of SOD_INDEM_INCREMENT = " Y" from trade_aggregate. If records present in Agency_netting_set_count , update the record for the this in Agency_netting_set_countsUpdate the Table with new trade count117Client_SOD_Repo_Trade_CountClient_SOD_Count1.01.Get the trade count of SOD_INDEM_INCREMENT = "Y" from trade_aggregate. If no records present in Agency_netting_set_count , insert a new record for the this in Agency_netting_set_countsA record should be present for that Client netting set Id with the comparision of trade_aggregate for LoanClient_SOD_Repo_Trade_CountClient_SOD_Count1.11.Get the trade count of SOD_INDEM_INCREMENT = " Y" from trade_aggregate. If records present in Agency_netting_set_count , update the record for the this in Agency_netting_set_countsUpdate the Table with new trade count118Client_SOD_Repo_Trade_CountClient_Current_Count1.21.Get the trade count of Current_INDEM_INCREMENT = "Y" from trade_aggregate. If no records present in Agency_netting_set_count , insert a new record for the this in Agency_netting_set_countsA record should be present for that Client netting set Id with the comparision of trade_aggregate for LoanClient_SOD_Repo_Trade_CountClient_Current_Count1.31.Get the trade count of Current_INDEM_INCREMENT = "Y" from trade_aggregate. If records present in Agency_netting_set_count , update record for the this in Agency_netting_set_countsUpdate the Table with new trade countClient_Intraday119Client_IntraDay_New_Loan_AggregationClient_IntraDay_Loan_Add_1.01. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination120Client_IntraDay_New_Loan_AggregationClient_IntraDay_Loan_Add_1.11. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination121Client_IntraDay_New_Loan_AggregationClient_IntraDay_Loan_Add_1.21. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination122Client_IntraDay_New_Loan_AggregationClient_IntraDay_Loan_Add_1.31. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are no term dates , group them , Insert a record in trade_aggregate with next business date for the term dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination123Client_IntraDay_New_Loan_AggregationClient_IntraDay_Loan_Add_1.41. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination124Client_IntraDay_New_Loan_AggregationClient_IntraDay_Loan_Add_1.51. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , 4. If there are past dated , group them , Insert a record in trade_aggregate with with next business date of the past business dateA record should be present in Trade Aggregate for that Client netting set Id with the asset Id, Trade type = "Loan" and its combination125Client_IntraDay_Update_Loan_AggregationClient_IntraDay_Loan_Update_1.01. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Loan", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty = 0 , no updates , Increment the trade count if > 0 , 4. If there are past dated or No term dates or or as_of_date = Business dates , group them based on condition ,Update the Record if already exisits Trade_Aggregate , Agency_netting_Set_CountsUpdate the Aggregate data record with Trade count40.Client_IntraDay_Update_Loan_AggregationClient_IntraDay_Loan_Update_1.11.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If No record presents in Agency_Netting_set_count , Insert a record with new Trade countInsert the Aggregate data record with Trade count40.Client_IntraDay_Update_LOan_AggregationClient_IntraDay_Loan_Update_1.21.Get the trade count of SOD_INDEM_INCREMENT = "Y" or Current_INDEM_INCREMENT = "Y" from trade_aggregate. . If already a record presents in Agency_Netting_set_count , update the record with new Trade countUpdate the Aggregate data record with Trade count126Client_IntraDay_New_Repo_AggregationClient_IntraDay_Repo_Add_1.01. Get the Client type Netting data from Netting_set , where Netting Set type = "CLI" and Client_Entity_idmatching with dml_borrower_id and broker_entity_id from trade 2. Get the Asset Id , Coll_type_cd = "Repo", Term_date,quantity, indem_qty, unIndem_qty,Business date from trade, trade_fund 3. If current_indem_qty > 0 , then Increment the Trade count 4.If as_of_date = business date , group them , Insert a record in trade_aggregateA record should be present in Trade Aggregate for that C