Perhaps my example is too simple but I need to transpose the results from being multiple rows to being multiple columns in a single row. The only issue that the number of returned initial rows may vary so therefore my final number of columns may vary also.
As an example, my returned results from
select name from pets
could be:
Dog
Cat
Fish
Rabbit
And I need each value in a separate column:
Dog
Cat
Fish
Rabbit