Rollups help you aggregate data in your databases based on relations.

Going back to our customers and items example in database relations, let's say you wanted to know how much each customer spent based on what they bought.

b3.jpg

Rollup types

There are 17 different calculations you can apply as a rollup. Here are all of them: