Limit the number of groups in SQL queries such as for example on MySql...