I'm new to my job career.. I'm building an SSAS model on Visual Studio Data Tool.. one of the most complex problems I faced is a field contain multiple values that I need to connect everyone of them to another Table eg.
Family   PersonsID 
1         1#2#5 
2         6#7#10
I want a Query "not a plsql program" to make it this form
Family  PersonsID
1          1
1          2
1          5
2          6
2          7
2          10
to bound it with Persons Table. I found this genius query
SELECT A.[Family],  
     Split.a.value('.', 'VARCHAR(100)') AS String  
 FROM  (SELECT [State],  
         CAST ('<M>' + REPLACE([PersonsID], '#', '</M><M>') + '</M>' AS XML) AS String  
     FROM  TableA) AS A CROSS APPLY String.nodes ('/M') AS Split(a);
it worked totally perfect as I wanted but only on SQL server. When I Tried it on Oracle 11g It gave me error: expected "join" after Cross
can you help me.. I need it as query because I don't have permission to create functions and procedures on the DB by the client policy and I need it as fast as possible
 
     
     
    