select title, Forename AS "Firstname", Surname AS "Lastname", COUNT
(VISIT.Vet_Id) AS "Visits"
from VISIT, VET
where VISIT.Vet_Id = VET.Vet_Id
group by title, Surname,VISIT.VET_Id
order by title, Surname, VISIT.VET_Id;
When executing the code above, i receive an error message: Not a GROUP BY expression though it works when i remove Forename AS "Firstname"
Why is this happening?