I've got data that goes sort of like this:
Time Name country
12 steve brazil
12 mary brazil
12 kate usa
12 john usa
13 paul canada
13 tim canada
How would i go about writing a pivot query so that it looks like this?:
Time Name1 Name2 Country
12 steve mary brazil
12 kate john usa
13 paul tim canada
Thanks!
Best Answer
Here is a quick example of using
min
andmax
along withgroup by
to produce a result that is similar to yours.