Correct 'group' and 'having' query