SQL how to split Quantity into Multiple Rows based on Quantity on Target source
问题 I have two table where i want to join and show quantity with details. table are join with ITM,DIA , and total Qty is equal in both table on ITM/DIA combination I want to split table2 quantity on table1 and populate table2 data along with table1 data. I have below data for your reference, "table1" and "table2". and you can see my expected result in table "tableResult" CREATE TABLE table1 (`ITM` varchar(5), `DIA` varchar(4), `LOC` varchar(4), `ID` varchar(3), `QTY` int) ; INSERT INTO table1 (