Concatenate table row into one string

A post was split to a new topic: Build Dynamic Query Based on Table Structure