We have a table with one field name {amit,amit,karan,karan,sumit},write a query to show the name and number of its occurrence.
Amit Soni
Select an image from your device to upload
SELECT name,COUNT(*)
FROM emp --emp is the name of the table that contain column name
GROUP BY name
HAVING COUNT(*)>=1