I'm learning Mysql, a newbie. First I wrote:
Select name, count(*)
From Emp
Group By name;
and the code was successful. After that, I added to the code it became:
Select *
From Emp
Where (Select name, count(*)
From Emp
Group By name) > 1;
and I get an error message too many values. How to fix that?
To get the name which have the count >1 use having count clause.
Try:
Learn more on: https://www.mysqltutorial.org/mysql-count/