Joining and aggregating tables

How data from several tables is combined and summed.

1What it covers

How data from several tables is combined and summed. The topic covers the keys that link tables, the types of join and their effect on the number of rows, grouping by period, entity or product, the functions that sum, count and average, the level at which a figure is aggregated, and the traps of duplicated rows. It starts with separate tables and ends with a summary that is correct at the level the question needs.

2Why it matters

A join on a field that is not unique repeats rows and inflates totals. The level of aggregation decides what the figure means. An average of averages is rarely the right average.

3The skill it belongs to

4Roles that use it

Updated 5 Nov 2026