Whenever you need aggregated values from a subset of one table when the subset is not build because of the value of one or several attributes (in other words when you didn't use "where" in the select) or of course when the resultset is build of a query over several tables