In the underlying query, do you have more criteria than just the company name? If so, this is why you are getting a record for each vacancy the company has. Only use the company name from the vacancy table, then group. You should only get one record for each company no matter how many vacancies.