Using the GROUP BY clause in HiveQL queries to group rows based on one or more columns, and applying aggregate functions to each group.