© 2012 triAGENS GmbH | 2012-04-04 44 GROUP: grouping The GROUP keyword can be used to group a list by one or multiple group criteria Difference to SQL: GROUP performs grouping, no aggregation Aggregation can be performed later using LET or RETURN The result of GROUP is a (hierarchical) list of documents, containing one document for each group This document contains the group criteria values plus the list of documents for the group