Easy query for you Access Studs

  • Thread starter Thread starter Jason Stephens
  • Start date Start date
J

Jason Stephens

I have a simple table that has only 2 colums, a name and a type. IE:
Name Type
------------------
Jason 1
Paul 3
John 2
Sally 3
Ron 2


What I need is a query that will give me a count for each type. The example
output for the above data would be:

Type Count
------------------
1 1
2 2
3 2


Etc. What is the correct syntax to get these results? Responses as SQL
statements would be fine. Much love and appreciation!

--Jason
 
SELECT [Type], Count([Type] as CountType
FROM [YourTable]
GROUP BY [Type]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help With SQL Update 1
Query Question 2
Transform/PIVOT Query 4
Req Help with Crosstab query 1
Query to display highest totals 1
Creating a parameter in a Union Query 2
if statement 16
making a table with a query 2

Back
Top