select "期初" as 日期,品种,型号,计量吨位 as 期初库存吨位,0 as 入库吨位,0 as 出库吨位,件数 as 期初库存件数,0 as 入库件数,0 as 出库件数,螺纹支数 as 期初库存支数,0 as 入库支数,0 as 出库支数,螺理重,as 期初库存螺重,0 as 入库螺重,0 as 出库螺重 from [期初$] union all select "入库" as 日期,品种,型号,0 as 期初库存吨位,计量吨位 as 入库吨位,0 as 出库吨位,0 as 期初库存件数,件数 as 入库件数,0 as 出库件数,0 as 期初库存支数,螺纹支数 as 入库支数,0 as 出库支数,0,as 期初库存螺重,螺理重 as 入库螺重,0 as 出库螺重 from [入库$] union all select "出库" as 日期,品种,型号,0 as 期初库存吨位,0 as 入库吨位,计量吨位 as 出库吨位,0 as 期初库存件数,0 as 入库件数,件数 as 出库件数,0 as 期初库存支数,0 as 入库支数,螺纹支数 as 出库支数,0,as 期初库存螺重,0 as 入库螺重,螺理重 as 出库螺重 from [出库$] |