Hi,
I have a table that describes an action undertaken by a person, where there is one record PER action -- together, IndustryNo, DeptNo, PersonNo and Action describe a unique record. There is at least one record for every person of interest, and some people may have multiple actions.
e.g.,
I would like to have a select query that returns the data in the following format: Organized as ONE RECORD per person, and the multiple actions are split across fields, so that the result of the query looks like:
What would be the best way to go about doing this?
Thanks!
I have a table that describes an action undertaken by a person, where there is one record PER action -- together, IndustryNo, DeptNo, PersonNo and Action describe a unique record. There is at least one record for every person of interest, and some people may have multiple actions.
e.g.,
Code:
IndustryNo DeptNo PersonNo Action
1 1 1001 2
1 1 1002 4
1 1 1002 6
1 1 1002 7
1 2 1003 3
2 1 1001 2
2 1 1001 11
Code:
IndustryNo DeptNo PersonNo Action1 Action2 Action3
1 1 1001 2
1 1 1002 4 6 7
1 2 1003 3
2 1 1001 2 11
Thanks!