Here is what my data looks like:
ID | LOCATION
123, A1
123, Z8
123, Q3
123, B1
123, N4
124, A6
124, A7
124, A8
124, Z0
124, Q5
I need this:
ID | LOCATION1 | LOCATION2 | LOCATION3 | LOCATION4 | LOCATION5 |
123, A1, Z8, Q3, B1, N4
124, A6, A7, A8, Z0, Q5
I tried to run this query with GENXTAB but I end up with too many unique locations. I know I'll never end up with more than 10 locations per ID.
What would be the suggested method to use, since my initial plan to use genxtab is a bust?
ID | LOCATION
123, A1
123, Z8
123, Q3
123, B1
123, N4
124, A6
124, A7
124, A8
124, Z0
124, Q5
I need this:
ID | LOCATION1 | LOCATION2 | LOCATION3 | LOCATION4 | LOCATION5 |
123, A1, Z8, Q3, B1, N4
124, A6, A7, A8, Z0, Q5
I tried to run this query with GENXTAB but I end up with too many unique locations. I know I'll never end up with more than 10 locations per ID.
What would be the suggested method to use, since my initial plan to use genxtab is a bust?