I have a table in SQL that has two fields ( id
, xml
), just looking at my XML field, the row is like this:
<Sheet1>
<Production_x0020_Line>L1B4</Production_x0020_Line>
<Item_x0020_Number>VPJG7F-10849-BD</Item_x0020_Number>
<Fecha>02/20 - 02/26</Fecha>
<cantidad>2</cantidad>
</Sheet1>
<Sheet1>
<Production_x0020_Line>L1B4</Production_x0020_Line>
<Item_x0020_Number>VPJG7F-10849-DD</Item_x0020_Number>
<Fecha>02/20 - 02/26</Fecha>
<cantidad>1</cantidad>
</Sheet1>
I would like you to see a normal table in SQL like this:
Production line Item Number Date Cantidad
L1B4 VPJG7F10849BD 02/20 2
L1B4 VPJG7F10849DD 02/20 1
Having the data in a table to be able to make a query and select L1B4
and to add the quantities 2 and 1, or I would like to know if there is any other way to do it.