Interviews6 answers
6 Answers
select name,COUNT(Name) from tablename
group by Name
Sanjeev KumarPosted Jul 18, 2016, 10:20 PM EDT
Select [Name], Count([Name]) times from Table group by[Name]
Rahul PrajapatPosted May 30, 2015, 6:58 AM EDT
Select [Name], Count([Name]) Occ from Table group by[Name]
Pankaj Kumar ChoudharyPosted May 22, 2015, 10:19 AM EDT
Select [Name],Count([Name]) as Times from TableName group by [Name]
Dinesh RathiPosted Mar 7, 2007, 2:38 AM EST
SELECT name,COUNT(*)
FROM emp --emp is the name of the table that contain column name
GROUP BY name
HAVING COUNT(*)>=1
tt83xPosted Mar 1, 2007, 3:12 AM EST
This seems to work...
SELECT field_name,count(*) FROM table_name group BY field_name
JohnnyPosted Feb 26, 2007, 5:05 AM EST


