compare transaction count - Head Office and Branch - HD14849888

Good Day

Head office and Branch Trial balances are not matching. Control accounts are out of balance between Head office and branch.

I am looking for MSQL scripts for below.

- to compare transaction count. between (HO/Branch) determine invalid or missing records.

- Ensure that GL master file records exist in both places.