SELECT [201_EFFECTIVE_Date_OpenClaims].[Final Status], [201_EFFECTIVE_Date_OpenClaims].[Resolved On], [201_EFFECTIVE_Date_OpenClaims].StatusOnEffectiveDate, DistributionTransactions.ClaimsDecLookupKEY, [201_EFFECTIVE_Date_GLAccounts].[Cash Account], [201_EFFECTIVE_Date_GLAccounts].[Cash Liability Account], [201_EFFECTIVE_Date_GLAccounts].[Cash Cost Center], [201_EFFECTIVE_Date_GLAccounts].[Stock Cash Account], [201_EFFECTIVE_Date_GLAccounts].[Stock Liability Account], [201_EFFECTIVE_Date_GLAccounts].[Stock Cost Center], RPT_ReserveReleases_1_Allowed.O, RPT_ReserveReleases_1_AllowedInt.O, RPT_ReserveReleases_1_AllowedTotal.O, RPT_ReserveReleases_1_Allowed.U, RPT_ReserveReleases_1_AllowedInt.U, RPT_ReserveReleases_1_AllowedTotal.U, RPT_ReserveReleases_1_Allowed.R, RPT_ReserveReleases_1_AllowedInt.R, RPT_ReserveReleases_1_AllowedTotal.R, RPT_ReserveReleases_1_AllowedTotal.D, RPT_ReserveReleases_1_Cash.O, RPT_ReserveReleases_1_Cash.U, RPT_ReserveReleases_1_Cash.R, RPT_ReserveReleases_1_Cash.D, RPT_ReserveReleases_1_Cash.EO, RPT_ReserveReleases_1_Cash.EU, RPT_ReserveReleases_1_Cash.ER, RPT_ReserveReleases_1_Cash.ED, RPT_ReserveReleases_1_Stock.O, RPT_ReserveReleases_1_Stock.U, RPT_ReserveReleases_1_Stock.T, RPT_ReserveReleases_1_Stock.R, RPT_ReserveReleases_1_Stock.D, RPT_ReserveReleases_1_Stock.EO, RPT_ReserveReleases_1_Stock.EU, RPT_ReserveReleases_1_Stock.ER, RPT_ReserveReleases_1_Stock.ED, RPT_ReserveReleases_1_CVV.O, RPT_ReserveReleases_1_CVV.U, RPT_ReserveReleases_1_CVV.R, RPT_ReserveReleases_1_CVV.D, DistributionTransactions.[Affiliated Claim Class Descr], DistributionTransactions.BCRT_Creditor_Num, [104_BCRT_Creditor_tbl].BCRT_Creditor_Name, [104_BCRT_Creditor_tbl].fld_Assigned_to, DistributionTransactions.CLAIM_SCHED_NO, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_Omnibus_Final, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_Reserve, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_OrderOrSettleDate, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.CLAIM_NM, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.ADDRESS1, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.ADDRESS2, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.ADDRESS3, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.CITY, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.STATE, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.ZIP, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.CONTRACT, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.CASE, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_LegalEntity, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_Debtor_Group, RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.[SumOfCash Distribution as Recovery of Principal ROUNDED], RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.[SumOfCash Distribution Attributed to Interest ROUNDED], RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.BCRT2_Num, RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.BCRT3_Num, RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.Withholding, RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.Tax_ID INTO RPT_ReserveRelease_2_Detail_ALL_TABLE
FROM (((((((((((201_EFFECTIVE_Date_GLAccounts RIGHT JOIN DistributionTransactions ON [201_EFFECTIVE_Date_GLAccounts].ClaimsDecLookupKEY = DistributionTransactions.ClaimsDecLookupKEY) LEFT JOIN 201_EFFECTIVE_Date_OpenClaims ON DistributionTransactions.CLAIM_SCHED_NO = [201_EFFECTIVE_Date_OpenClaims].CLAIM_SCHED_NO) LEFT JOIN RPT_ReserveReleases_1_AllowedTotal ON DistributionTransactions.ClaimsDecLookupKEY = RPT_ReserveReleases_1_AllowedTotal.ClaimsDecLookupKEY) LEFT JOIN RPT_ReserveReleases_1_Cash ON DistributionTransactions.ClaimsDecLookupKEY = RPT_ReserveReleases_1_Cash.ClaimsDecLookupKEY) LEFT JOIN RPT_ReserveReleases_1_Stock ON DistributionTransactions.ClaimsDecLookupKEY = RPT_ReserveReleases_1_Stock.ClaimsDecLookupKEY) LEFT JOIN 104_BCRT_Creditor_tbl ON DistributionTransactions.BCRT_Creditor_Num = [104_BCRT_Creditor_tbl].BCRT_Creditor_Num) LEFT JOIN RPT_ALLCreditors_1_UNION_CLAIMS_SCH ON DistributionTransactions.CLAIM_SCHED_NO = RPT_ALLCreditors_1_UNION_CLAIMS_SCH.[Claim or Sch Num]) LEFT JOIN RPT_ReserveReleases_1_Allowed ON DistributionTransactions.ClaimsDecLookupKEY = RPT_ReserveReleases_1_Allowed.ClaimsDecLookupKEY) LEFT JOIN RPT_ReserveReleases_1_AllowedInt ON DistributionTransactions.ClaimsDecLookupKEY = RPT_ReserveReleases_1_AllowedInt.ClaimsDecLookupKEY) LEFT JOIN DistributionManualTransactions ON DistributionTransactions.ClaimsDecLookupKEY = DistributionManualTransactions.ClaimsDecLookupKEY) LEFT JOIN RPT_ReserveReleases_1_CVV ON DistributionTransactions.ClaimsDecLookupKEY = RPT_ReserveReleases_1_CVV.ClaimsDecLookupKEY) LEFT JOIN RPT_ReserveReleases_1_CashPrincandInt_BCRT23num ON DistributionTransactions.ClaimsDecLookupKEY = RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.ClaimsDecLookupKEY
GROUP BY [201_EFFECTIVE_Date_OpenClaims].[Final Status], [201_EFFECTIVE_Date_OpenClaims].[Resolved On], [201_EFFECTIVE_Date_OpenClaims].StatusOnEffectiveDate, DistributionTransactions.ClaimsDecLookupKEY, [201_EFFECTIVE_Date_GLAccounts].[Cash Account], [201_EFFECTIVE_Date_GLAccounts].[Cash Liability Account], [201_EFFECTIVE_Date_GLAccounts].[Cash Cost Center], [201_EFFECTIVE_Date_GLAccounts].[Stock Cash Account], [201_EFFECTIVE_Date_GLAccounts].[Stock Liability Account], [201_EFFECTIVE_Date_GLAccounts].[Stock Cost Center], RPT_ReserveReleases_1_Allowed.O, RPT_ReserveReleases_1_AllowedInt.O, RPT_ReserveReleases_1_AllowedTotal.O, RPT_ReserveReleases_1_Allowed.U, RPT_ReserveReleases_1_AllowedInt.U, RPT_ReserveReleases_1_AllowedTotal.U, RPT_ReserveReleases_1_Allowed.R, RPT_ReserveReleases_1_AllowedInt.R, RPT_ReserveReleases_1_AllowedTotal.R, RPT_ReserveReleases_1_AllowedTotal.D, RPT_ReserveReleases_1_Cash.O, RPT_ReserveReleases_1_Cash.U, RPT_ReserveReleases_1_Cash.R, RPT_ReserveReleases_1_Cash.D, RPT_ReserveReleases_1_Cash.EO, RPT_ReserveReleases_1_Cash.EU, RPT_ReserveReleases_1_Cash.ER, RPT_ReserveReleases_1_Cash.ED, RPT_ReserveReleases_1_Stock.O, RPT_ReserveReleases_1_Stock.U, RPT_ReserveReleases_1_Stock.T, RPT_ReserveReleases_1_Stock.R, RPT_ReserveReleases_1_Stock.D, RPT_ReserveReleases_1_Stock.EO, RPT_ReserveReleases_1_Stock.EU, RPT_ReserveReleases_1_Stock.ER, RPT_ReserveReleases_1_Stock.ED, RPT_ReserveReleases_1_CVV.O, RPT_ReserveReleases_1_CVV.U, RPT_ReserveReleases_1_CVV.R, RPT_ReserveReleases_1_CVV.D, DistributionTransactions.[Affiliated Claim Class Descr], DistributionTransactions.BCRT_Creditor_Num, [104_BCRT_Creditor_tbl].BCRT_Creditor_Name, [104_BCRT_Creditor_tbl].fld_Assigned_to, DistributionTransactions.CLAIM_SCHED_NO, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_Omnibus_Final, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_Reserve, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_OrderOrSettleDate, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.CLAIM_NM, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.ADDRESS1, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.ADDRESS2, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.ADDRESS3, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.CITY, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.STATE, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.ZIP, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.CONTRACT, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.CASE, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_LegalEntity, RPT_ALLCreditors_1_UNION_CLAIMS_SCH.fld_Debtor_Group, RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.[SumOfCash Distribution as Recovery of Principal ROUNDED], RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.[SumOfCash Distribution Attributed to Interest ROUNDED], RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.BCRT2_Num, RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.BCRT3_Num, RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.Withholding, RPT_ReserveReleases_1_CashPrincandInt_BCRT23num.Tax_ID, DistributionTransactions.ClaimsDecLookupKEY
ORDER BY [104_BCRT_Creditor_tbl].BCRT_Creditor_Name, DistributionTransactions.ClaimsDecLookupKEY;