The HAVING condition is a 'condition to list' applied to groups. For example:
SELECT order_number FROM order_lineGROUP BY order_numberHAVING SUM(quantity)=5;
prints all order numbers for which at least five items have been ordered.