As Les said, let us see the code and/or the returned values and we can probably help you better.

SPLIT/JOIN LEFT/RIGHT are some ideas to look at for altering the returned data you want to show or print.