I am a system admin that honestly doesn't know anything about sql nor programming. I was asked to get some data from a inventory management webapp that we purchased from a third party.
There is an Inventory table and an Inventory description table I already found out a query to inner join the two, but now there is a third table which is the Purchase order table. There is a column called CSV each field in this column contains an XML file with multiple inventory ids per field. The xml file is in this format below:
`<FORMDATA>
<ITEM>
<ITPCODE>HBL5266C</ITPCODE>
<ITPDESC>Plug - 115V - 15A Male</ITPDESC>
</ITEM>
</FORMDATA>`
So my question is how can I accomplish an sql query that will accomplish the following:
Select PRTCODE from PRT table, SElect PRTDescription from PRTDESC, and finally select CSV but most importantly stript and only select the IPT CODE out of it from the Purchase Order table and link it with PRTCODE?
If it is not possible to accomplish this last portion will I Have to export those files and run some sort of loop to manipulate the strings in those XML files? (They labeled the column as CSV but it appears to be in XML format)