Understand how to group records for aggregate calculations.