请做表专家给做个图表

来源:百度知道 编辑:UC知道 时间:2024/05/16 11:53:54
一个新的保险公司想要为它的运营的第一个12个月做一个销售开支的计划。它计划在第一个月卖出10万美元的保险,并保持每个月增长2万美元。一个代理机构每月可以售出一万美元。同时,每个代理机构的薪酬是三千美元每月,另外还需要50美元的电话费,1000美元的差旅费和100美元的招待费。使用电子制表软件生成一个费用报告,用竖栏显示各个方面的费用,把12个月作为横排,包含各行列的总数。

邮箱:diqixingzuo@163.com

我不知道你的具体要求,我做了一个表,你看看如何:
以下是代码
---------------------------------------------------------------
create table sellplan(
months int primary key,
agent_sale int null,
agent int null,
salary int null,
phone_fee int null,
evection_fee int null,
serve_fee int null)
go

declare @i int
declare @j int
declare @k int
set @i=1
set @j=10000
set @k=10
while @i<=12
begin
insert into sellplan values(@i,@k*@j,@k,3000*@k,50*@k,1000*@k,100*@k)
set @i=@i+1
set @k=@k+2
end
go

alter table sellplan add agin int
go

update sellplan
set agin=(agent_sale-salary-phone_fee-evection_fee-serve_fee)
go
---------------------------------------------------------------
以下是运行结果:
--------------------------------------------
months agent_sale agent salary phone_fee evection_fee serve_fee agin
----------- -------