If a table T1 has single column c1 with data base (a,a,b,b,b,c) write a query that gives output as
a 2
b 3
If a table T1 has single column c1 with data base (a,a,b,b,b,c) write a query that gives output as
a 2
b 3
Try this:
SELECT c1, COUNT(*)
FROM T1
GROUP BY c1
HAVING COUNT(*) > 1