Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

top frequency in sql server

SELECT TOP(20) [Name], Count(*) FROM Table
WHERE [Group] = 1
GROUP BY [Name]
ORDER BY Count(*) DESC
 
PREVIOUS NEXT
Tagged: #top #frequency #sql #server
ADD COMMENT
Topic
Name
3+1 =