Comment Comment by FedericoRazzoli You are right, though (some?) DBMSs allow to use HAVING for columns that appear in the GROUP BY clause. parent FedericoRazzoli 4 years ago