I know that array formats do not exist in stored procedure let alone 2-D array. But I use CSV string to store the values of the array using comma delimiter. My main question is can I store in the same way the values which I need in a 2-D format with the help of another delimiter. If yes, Can anyone guide me in the right way to do that?
The table I have is something like this....
UserID | ItemID
---------------------------
User1 1
User1 2
User2 3
User2 1
What I need is create a two dimensional result where for each item I store the users who requested it. So I want to create a csv string like this....
"1:User1,User2,2:User1,3:User2"
Something similar to the format is it possible, to create this in stored procedure and split the string into 2-d array in c#.