• + 1 comment

    Hi the reason we have used the founders name in the groupby clause is because if you see the select statement then you see that we have performed aggregate function of COUNT on 4 things and 2 which are the company code and the founder name do not have any aggregate function. so we know according to rules of groupby that either it has to have an aggregate function or it must be included in the GROUP by clause and hence we used the company code and the founder name in the GROUP BY clause.