I have a table where the data looks like this in my Access 2000 database:
I am trying to get a count of how many times each state shows up in the database.
I should get a count such as:
Florida = 4
Georgia = 3
Texas = 4
Vermont = 1
Oregon = 2
I have tried many sql attempts but not working.
Please advise how I can do this?
Code:
ID State
1 Florida, Georgia, Texas, Oregon
2 Texas, Florida
3 Vermont, Texas
4 Oregon, Georgia
5 Georgia, Texas, Florida
6 Florida
I should get a count such as:
Florida = 4
Georgia = 3
Texas = 4
Vermont = 1
Oregon = 2
I have tried many sql attempts but not working.
Code:
select state, count(*) as myState
from myTable
group by state
Please advise how I can do this?