1
I have an SQL Server database from a system that has been discontinued. In this database, there is a table MOVIMENTACAO and a table EQUIPAMENTO, where would set up a relationship N:N.
The problem is that instead of having a third table, there is a field in the table MOVIMENTACAO with the Ids of EQUIPAMENTOS format XML.
EX:
<ArrayOfInt xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<int>39254</int>
<int>39255</int>
<int>79349</int>
<int>79351</int>
<int>79354</int>
<int>79456</int>
<int>79539</int>
<int>79547</int>
</ArrayOfInt>
Doubt: Is there any way to assemble a QUERY where I can make that relationship?


If I understand correctly, what POG did there. I believe that it is best to play this in a programming language, create a rule to treat these Ids played in that xml and make a relationship N:N really valid.
– Adriano Gomes