|
1、
SELECT 投产.批号, 投产.型号,投产量.型号, A工序损耗.破裂损耗, A工序损耗.缺角损耗, B工序损耗.线氧化损耗, B工序损耗.线破皮损耗, C工序损耗.爬镀损耗, C工序损耗.镀层氧化损耗, D工序损耗.外观污点损耗
FROM (((投产 LEFT JOIN D工序损耗 ON 投产.批号 = D工序损耗.批号) LEFT JOIN C工序损耗 ON 投产.批号 = C工序损耗.批号) LEFT JOIN B工序损耗 ON 投产.批号 = B工序损耗.批号) LEFT JOIN A工序损耗 ON 投产.批号 = A工序损耗.批号;
2、
SELECT 投产.批号, 投产.投产量, [破裂损耗]+[缺角损耗] AS A工序损耗, [线氧化损耗]+[线破皮损耗] AS B工序损耗, [爬镀损耗]+[镀层氧化损耗] AS C工序损耗, D工序损耗.外观污点损耗 AS D工序损耗
FROM (((投产 LEFT JOIN D工序损耗 ON 投产.批号 = D工序损耗.批号) LEFT JOIN C工序损耗 ON 投产.批号 = C工序损耗.批号) LEFT JOIN B工序损耗 ON 投产.批号 = B工序损耗.批号) LEFT JOIN A工序损耗 ON 投产.批号 = A工序损耗.批号; |
|