outputting data as a comma-separated join