Greetings,
As part of my Highschool project I had to come up with a themed database with a bunch of tables to query from, so I came up with a 'police' database. I am trying to get a count of all data thats in my tblTrafficCodes .Description column and have them grouped so it would look like this:
Count Description
3 Tickets
2 DUI
3 Fights ... and so on and so on.
The issue I'm running into is that I get this instead:
Count Description
1 Tickets
1 Tickets
1 Tickets
1 DUI
1 DUI..... and so on.
I complicated this a bit by having a 5 table join and not sure if thats also contributing to my issue.
I'm learning both SQL and how to do queries via the Design view. Can't quite figure out how to do this in both
Can anyone help me please!
As part of my Highschool project I had to come up with a themed database with a bunch of tables to query from, so I came up with a 'police' database. I am trying to get a count of all data thats in my tblTrafficCodes .Description column and have them grouped so it would look like this:
Count Description
3 Tickets
2 DUI
3 Fights ... and so on and so on.
The issue I'm running into is that I get this instead:
Count Description
1 Tickets
1 Tickets
1 Tickets
1 DUI
1 DUI..... and so on.
I complicated this a bit by having a 5 table join and not sure if thats also contributing to my issue.
I'm learning both SQL and how to do queries via the Design view. Can't quite figure out how to do this in both
Can anyone help me please!
Comment