Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Activity-Based Costing for a Bank Branch Network in T-SQL
New

Activity-Based Costing for a Bank Branch Network in T-SQL

Build a four-stage ABC model in SQL Server: workgroups, support costs, activities and products, checked and traced
Last updated 11/2026
English
English

What you'll learn

  • Build an activity-based costing model in SQL Server with stored procedures: centres, lines, resources, activities, drivers and cost objects
  • Store the current month once, so month-end is two commands and no date is ever typed into a query
  • Reassign support activities step-down on headcount, workstations and floor space, and reconcile every stage
  • Assign resources to activities with salary-weighted time surveys, line assignments and service activities
  • Calculate activity rates, product costs, cost per account and profitability, and trace any cost to its origin
  • Compare fully absorbed and spare capacity costing, and run and log the whole model for every month

Course content

9 sections • 55 lectures • 5h 7m total length
  • Welcome to the course3:54
  • How activity-based costing works in a bank4:25
  • The model flow, stage by stage5:14
  • Set up the database6:26
  • Formatting functions: money, numbers and percentages13:40

Requirements

  • Comfortable with SQL: SELECT, JOIN, GROUP BY, CTEs and stored procedures
  • SQL Server 2017 or later (the free Developer or Express edition is fine) and SQL Server Management Studio
  • Basic management accounting ideas (costs, overheads, cost centres) are helpful

Description

This course contains the use of artificial intelligence.

Activity-based costing tells a bank what each product, branch and activity really costs. In this course, you'll build a complete activity-based costing model for the Branch Network division of a South African bank, entirely in T-SQL, one stage at a time, and you'll check and trace every stage before you move on to the next.

You'll work with Protea Bank, a fictional bank with 12 branches, 3 regional offices, support and service centres, and about R15.1 million of monthly costs. Every query and stored procedure is run on screen in SQL Server Management Studio, with real results, and every result is formatted so it's easy to read: rand with separators, counts and percentages.

The model, in four stages

  • Stage 1, ledger lines to workgroups: each centre's costs are shared among its teams on salaries, headcount, floor space and workstations, with line-by-line overrides.
  • Stage 2, support costs to workgroups: the executive office, HR, IT, facilities and the regional offices are reassigned step-down to the workgroups they serve, before any activity is costed, so every team carries its full cost.
  • Stage 3, workgroups to activities: each team's full cost goes to its activities on the volumes the team actually recorded, times standard minutes. No time surveys.
  • Stage 4, activities to products: activity costs reach products on driver volumes, by branch and by channel, including the online channel.

After each stage you'll run a reconciliation check, prove the stage still balances to the ledger, and trace the results back to where they came from.

What you'll get out of it

  • Product profitability, profit by branch and product, and the cost of opening an account in a branch versus online.
  • Fully absorbed and spare capacity costing, with utilisation for every team.
  • Traceback: any product's cost explained by activity, by originating centre and by resource.
  • A month-end routine: set the month once, run the whole model in one transaction, and look back at any month.

Included: 54 practical lectures, 8 section quizzes, 14 practice exercises with answers, the full setup scripts and a script for every lecture.

Requires SQL Server 2017 or later (the free Developer edition is fine) and SQL Server Management Studio. You should be comfortable with SELECT, joins, GROUP BY and basic stored procedures. All names and figures are fictional.

Who this course is for:

  • Management and cost accountants who want to build ABC models themselves
  • Finance business partners and analysts in banking and financial services
  • Users of ABM software who want to understand how the costing engine works
  • SQL developers building costing and profitability reporting