|
本帖最后由 冰城星子 于 2013-6-18 17:31 编辑
select * from (select 日期,区域,摘要,"客户返点" as 类别,[客户返点] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"业务招待费" as 类别,[业务招待费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"广告宣传费" as 类别,[广告宣传费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"市场支持费" as 类别,[市场支持费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"营销工资" as 类别,[营销工资] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"差旅费" as 类别,[差旅费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"差补金" as 类别,[差补金] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"提成" as 类别,[提成] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"其他1" as 类别,[其他1] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"经销商年会" as 类别,[经销商年会] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"营销经费" as 类别,[营销经费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"奖励" as 类别,[奖励] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"货运费" as 类别,[货运费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"汽车费" as 类别,[汽车费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"电话费" as 类别,[电话费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"低耗品" as 类别,[低耗品] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"其他2" as 类别,[其他2] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"员工福利" as 类别,[员工福利] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"汽油费" as 类别,[汽油费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"维修费" as 类别,[维修费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"产品研发费" as 类别,[产品研发费] as 金额 from [sheet$a:Y] union all
select 日期,区域,摘要,"北京办事处房租" as 类别,[北京办事处房租] as 金额 from [sheet$a:Y])
where 日期 is not null
|
|