How can I use CROSS APPLY and FOR XML to normalise the table which contains a list for informartion?
Product Orderid
P1 1,2,3
P2 1,3
P3 1
It should be normalised like below
P1 1
P1 2
P1 3
P2 1
P2 3
P3 1
I think it can be done with CROSS APPLY FOR XML. Is there any other way of doing it?