Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frequency analysis of valuse in a column

Status
Not open for further replies.

leegold2

Technical User
Oct 10, 2004
116
Any way in SQL to take a column from a DB and do a frequency analysis - a breakdown of the values for this column?

There are GUI ways to do this I'm sure, but I wondered in SQL for an ACCESS DB.

Possibly a histogram or a table saying out of 500 records I have one hundred and two "301" ninety-eight "212" values and three-hundred "410"?

Thanks,
Lee G.
 
Like this ?
SELECT yourColumn, Count(*) AS Frequency
FROM yourTable
GROUP BY yourColumn

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top