I have a table with the following data
CODE | VALUE
-----------------------
100 | MIKE
100 | JOHN
200 | MIKE
200 | JOHN
200 | FRED
I'd like to be able to show the data in the following form:
CODE | VALUE1 | VALUE2| VALUE3
---------------------------------------------
100 | MIKE | JOHN |
200 | MIKE | JOHN | FRED
I thought this was what a cross tab could be used for but think I'm mistaken. Does anybody know how I could achieve this?
CODE | VALUE
-----------------------
100 | MIKE
100 | JOHN
200 | MIKE
200 | JOHN
200 | FRED
I'd like to be able to show the data in the following form:
CODE | VALUE1 | VALUE2| VALUE3
---------------------------------------------
100 | MIKE | JOHN |
200 | MIKE | JOHN | FRED
I thought this was what a cross tab could be used for but think I'm mistaken. Does anybody know how I could achieve this?