Hi Archana,
There are many ways of doing this. One of them is by assigning sequence to every record, then divide them into set of 9.
Finally, group by with Concatenate aggregation to get the desired result.
I have attached the images for your reference:
Best Regards,
Naveen