elect A.姓名,A.零件号,A.车数量,A.铣数量,A.镗数量,A.钳数量,A.临数量,A.车数量*B.车 as 车费用,A.铣数量*B.铣 as 铣费用, A.镗数量*B.镗 as 镗费用,A.钳数量*B.钳 as 钳费用,A.临数量*B.临 as 临费用 from
(select 日期,零件号,零件名称,数量 as 车数量,0 as 铣数量,0 as 镗数量,0 as 钳数量,0 as 临数量,车 as 姓名 from [数据录入$] union all
select 日期,零件号,零件名称,0 as 车数量,数量 as 铣数量,0 as 镗数量,0 as 钳数量,0 as 临数量,铣 as 姓名 from [数据录入$] union all
select 日期,零件号,零件名称,0 as 车数量,0 as 铣数量,数量 as 镗数量,0 as 钳数量,0 as 临数量,镗 as 姓名 from [数据录入$] union all
select 日期,零件号,零件名称,0 as 车数量,0 as 铣数量,0 as 镗数量,数量 as 钳数量,0 as 临数量,钳 as 姓名 from [数据录入$] union all
select 日期,零件号,零件名称,0 as 车数量,0 as 铣数量,0 as 镗数量,0 as 钳数量,数量 as 临数量,临 as 姓名 from [数据录入$])A,
(select 零件号,车,铣,镗,钳,临 from [零件定额$])B where A.零件号=B.零件号
请教:A是什么意思?B是什么意思?在这个表上对应的是哪个数据? |