I need help with an Access query. I have a table in access with stacked data in the following format:
ID Unit Job Group Score
1 GA 1A Female 5
2 GA 1A Male 4
3 NC 5B Female 2
4 NC 5C Male 8
I need the query output to be formatted as follows:
Unit Job FemaleScore MaleScore
GA 1A 5 4
NC 5B 2
NC 5C 8
I could do this in with Query Analyzer years ago by doing a self join similar to the query below, but I can't figure it out in Access.
Select F.Unit,F.Job, F.Group, F.Score, M.Score
from Unit as F left outer join Unit as M on F.ID = M.ID and F.Group = "Female" and M.Group="Male"
Any suggestions appreciated.
ID Unit Job Group Score
1 GA 1A Female 5
2 GA 1A Male 4
3 NC 5B Female 2
4 NC 5C Male 8
I need the query output to be formatted as follows:
Unit Job FemaleScore MaleScore
GA 1A 5 4
NC 5B 2
NC 5C 8
I could do this in with Query Analyzer years ago by doing a self join similar to the query below, but I can't figure it out in Access.
Select F.Unit,F.Job, F.Group, F.Score, M.Score
from Unit as F left outer join Unit as M on F.ID = M.ID and F.Group = "Female" and M.Group="Male"
Any suggestions appreciated.
Comment