I have a table called SerialNos with the following columns: Id, Parent_Id, SerialNo
There are different SerialNo on a Parent_Id Like:
Id Parent_Id SerialNo
1 16 abc
2 16 def
3 23 hij
4 23 klm
5 23 nop
I just want to retrieve comma separated SerialNos. for particular Parent_Id e.g. If Parent_Id is passed 16,then O/p should be : 'abc,def' and if Parent_Id is passed 23,then O/p should be : 'hij,klm,nop'