Counting events with SELECT DISTINCT, SELECT COUNT and UPDATE in Access
In Access, I have a table like this:
Date | EmployeeNum | Award
11-JAN-08 | 34 | GoldStar
13-JAN-08 | 875 | BronzeTrophy
13-JAN-08 | 34 | BronzeTrophy
18-JAN-08 | 875 | BronzeTrophy
And I want the table to count them like this:
EmployeeNum | GoldStar | BronzeTrophy
34 | 1 | 1
875 | 0 | 2
I want to create this table by running a query or something similar. I tried to include this in the request, but I'm not sure if I'm doing it right. I've tried using UPDATE and SET = SELECT COUNT without much success.
How should I do it? SHOULD I try this?
+1
Petskull
source
to share
3 answers