问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

业绩提成区间计算EXCEL如何运用函数?

发布网友 发布时间:2022-04-11 01:43

我来回答

3个回答

懂视网 时间:2022-04-11 06:04

[Employee] GO /****** Object: Table [dbo].[Commission] Script Date: 2019/11/17 14:10:21 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Commission]( [ComID] [int] IDENTITY(1,1) NOT NULL, [ComRatio] [float] NULL, [ComStartNum] [int] NULL, [ComEndNum] [int] NULL, PRIMARY KEY CLUSTERED ( [ComID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[Department] Script Date: 2019/11/17 14:10:21 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Department]( [DepID] [int] IDENTITY(1,1) NOT NULL, [DepName] [varchar](50) NULL, [DepAddress] [varchar](50) NULL, [DepJobContent] [varchar](200) NULL, PRIMARY KEY CLUSTERED ( [DepID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[Employees] Script Date: 2019/11/17 14:10:21 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Employees]( [EmpID] [int] IDENTITY(1,1) NOT NULL, [DepID] [int] NULL, [EmpName] [varchar](50) NULL, [EmpSex] [int] NULL, [EmpTel] [varchar](13) NULL, PRIMARY KEY CLUSTERED ( [EmpID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[Performance] Script Date: 2019/11/17 14:10:21 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Performance]( [PerID] [int] IDENTITY(1,1) NOT NULL, [EmpID] [int] NULL, [PerCount] [int] NULL, [PerContent] [varchar](200) NULL, [IsCommission] [int] NULL, PRIMARY KEY CLUSTERED ( [PerID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO SET IDENTITY_INSERT [dbo].[Commission] ON GO INSERT [dbo].[Commission] ([ComID], [ComRatio], [ComStartNum], [ComEndNum]) VALUES (1, 0.05, 0, 2000) GO INSERT [dbo].[Commission] ([ComID], [ComRatio], [ComStartNum], [ComEndNum]) VALUES (2, 0.1, 2001, 8000) GO INSERT [dbo].[Commission] ([ComID], [ComRatio], [ComStartNum], [ComEndNum]) VALUES (3, 0.15, 8001, 20000) GO INSERT [dbo].[Commission] ([ComID], [ComRatio], [ComStartNum], [ComEndNum]) VALUES (4, 0.2, 20001, 40000) GO INSERT [dbo].[Commission] ([ComID], [ComRatio], [ComStartNum], [ComEndNum]) VALUES (5, 0.25, 40001, 80000) GO INSERT [dbo].[Commission] ([ComID], [ComRatio], [ComStartNum], [ComEndNum]) VALUES (6, 0.3, 80001, 120000) GO INSERT [dbo].[Commission] ([ComID], [ComRatio], [ComStartNum], [ComEndNum]) VALUES (7, 0.35, 120000, 2000000) GO SET IDENTITY_INSERT [dbo].[Commission] OFF GO SET IDENTITY_INSERT [dbo].[Department] ON GO INSERT [dbo].[Department] ([DepID], [DepName], [DepAddress], [DepJobContent]) VALUES (1, N‘财务部‘, N‘1701室‘, N‘负责公司整体财务进出账管理‘) GO INSERT [dbo].[Department] ([DepID], [DepName], [DepAddress], [DepJobContent]) VALUES (2, N‘技术部‘, N‘1702-1706室‘, N‘负责公司技术方案指定.开发.实施‘) GO INSERT [dbo].[Department] ([DepID], [DepName], [DepAddress], [DepJobContent]) VALUES (3, N‘人事部‘, N‘1707室‘, N‘负责公司员工招聘,福利待遇‘) GO INSERT [dbo].[Department] ([DepID], [DepName], [DepAddress], [DepJobContent]) VALUES (4, N‘行政部‘, N‘1708室‘, N‘负责公司办公设备采购,登记‘) GO INSERT [dbo].[Department] ([DepID], [DepName], [DepAddress], [DepJobContent]) VALUES (5, N‘业务部‘, N‘1709-1719室‘, N‘负责公司产品的销售和客户的拓展,维护‘) GO SET IDENTITY_INSERT [dbo].[Department] OFF GO SET IDENTITY_INSERT [dbo].[Employees] ON GO INSERT [dbo].[Employees] ([EmpID], [DepID], [EmpName], [EmpSex], [EmpTel]) VALUES (1, 1, N‘刘忠田‘, 1, N‘13666767556‘) GO INSERT [dbo].[Employees] ([EmpID], [DepID], [EmpName], [EmpSex], [EmpTel]) VALUES (2, 2, N‘吕泽强‘, 1, N‘13666767556‘) GO INSERT [dbo].[Employees] ([EmpID], [DepID], [EmpName], [EmpSex], [EmpTel]) VALUES (3, 3, N‘丁伟亮‘, 1, N‘13666767556‘) GO INSERT [dbo].[Employees] ([EmpID], [DepID], [EmpName], [EmpSex], [EmpTel]) VALUES (4, 4, N‘马建‘, 0, N‘13666767556‘) GO INSERT [dbo].[Employees] ([EmpID], [DepID], [EmpName], [EmpSex], [EmpTel]) VALUES (5, 5, N‘孙晓红‘, 0, N‘13666767556‘) GO INSERT [dbo].[Employees] ([EmpID], [DepID], [EmpName], [EmpSex], [EmpTel]) VALUES (6, 1, N‘李玲‘, 0, N‘13666767556‘) GO INSERT [dbo].[Employees] ([EmpID], [DepID], [EmpName], [EmpSex], [EmpTel]) VALUES (7, 2, N‘李子明‘, 0, N‘13666767556‘) GO INSERT [dbo].[Employees] ([EmpID], [DepID], [EmpName], [EmpSex], [EmpTel]) VALUES (8, 3, N‘马欢‘, 0, N‘13666767556‘) GO SET IDENTITY_INSERT [dbo].[Employees] OFF GO SET IDENTITY_INSERT [dbo].[Performance] ON GO INSERT [dbo].[Performance] ([PerID], [EmpID], [PerCount], [PerContent], [IsCommission]) VALUES (1, 5, 3000, N‘某产品10公斤‘, 1) GO INSERT [dbo].[Performance] ([PerID], [EmpID], [PerCount], [PerContent], [IsCommission]) VALUES (2, 6, 7000, N‘某产品50公斤‘, 1) GO INSERT [dbo].[Performance] ([PerID], [EmpID], [PerCount], [PerContent], [IsCommission]) VALUES (3, 7, 9000, N‘某产品150公斤‘, 1) GO INSERT [dbo].[Performance] ([PerID], [EmpID], [PerCount], [PerContent], [IsCommission]) VALUES (4, 8, 10000, N‘某产品250公斤‘, 1) GO INSERT [dbo].[Performance] ([PerID], [EmpID], [PerCount], [PerContent], [IsCommission]) VALUES (5, 8, 13000, N‘某产品250公斤‘, 1) GO INSERT [dbo].[Performance] ([PerID], [EmpID], [PerCount], [PerContent], [IsCommission]) VALUES (6, 8, 150000, N‘某产品250公斤‘, 1) GO INSERT [dbo].[Performance] ([PerID], [EmpID], [PerCount], [PerContent], [IsCommission]) VALUES (7, 2, 2000, N‘公司产品管理系统开发奖金‘, 0) GO INSERT [dbo].[Performance] ([PerID], [EmpID], [PerCount], [PerContent], [IsCommission]) VALUES (8, 3, 2000, N‘某产品公司产品管理系统开发奖金公斤‘, 0) GO SET IDENTITY_INSERT [dbo].[Performance] OFF GO ALTER TABLE [dbo].[Employees] WITH CHECK ADD FOREIGN KEY([DepID]) REFERENCES [dbo].[Department] ([DepID]) GO ALTER TABLE [dbo].[Performance] WITH CHECK ADD FOREIGN KEY([EmpID]) REFERENCES [dbo].[Employees] ([EmpID]) GO SELECT b.EmpName AS 员工姓名, b.PerCount AS 业绩,b.ComRatio AS 提成比例,b.PerCount * b.ComRatio AS 提成金额 FROM ( SELECT a.EmpName,a.PerCount ,(SELECT ComRatio FROM dbo.Commission WHERE a.perCount BETWEEN ComStartNum AND ComEndNum) AS ComRatio FROM( SELECT b.EmpName,SUM(a.PerCount) AS PerCount FROM dbo.Performance a INNER JOIN dbo.Employees b ON a.EmpID = b.EmpID GROUP BY b.EmpName ) a ) b ORDER BY b.ComRatio

 

SQLSERVER根据提成比率区间计算业绩提成

标签:维护   办公设备   employee   ddr   name   count   man   计算   _id   

热心网友 时间:2022-04-11 03:12

公式为:

=LOOKUP(A1,{0,10,15,25,35,50}*1000,{0.08,0.12,0.15,0.18,0.22,0.3})*A1

如图所示:

热心网友 时间:2022-04-11 04:30

用判断IF ELSE
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
临沂比较有名的男装品牌 呼伦贝尔市悦动网络科技有限公司怎么样? 呼伦贝尔中汇实业有限公司怎么样? 呼伦贝尔油玉不绝电子商务有限公司怎么样? 如何避免wps卡顿? 属鼠的男人找对象是属什么,属鼠的人和什么属相合 96年鼠的姻缘在哪年 属相相合年份运势提升 2024属鼠找对象属什么最佳 黑客攻击网站能报案吗 黑客攻击报案有用吗 请问冰箱压缩机都包几年啊? 苹果怎么设置指纹下载app 用photoshop 怎样做荧光字?? 夜光粉怎么用~ 夜光粉怎么用在纸上 LCD和CRT显示器打游戏有什么区别? 液晶显示器是怎么将输入信号转化为显示画面的? 夜光粉丝印要用多少目的网,印几遍最为合适? 夜光粉可以用来印刷吗? 前驱图怎么变成荧光粉 霓虹灯的开始 PS怎么做出这种荧光粉的感觉? 电脑垃圾一键清理谁知道电脑里的垃圾怎么清 3月份去贵州黄果树瀑布好玩吗?是不是在枯水期啊?大神们帮帮忙 打算三月中旬去贵州玩,求指点应该怎么安排? 贵州三月份好玩的地方 安装mysql-5.6.11.tar.gz,是安装的server还是client,还是两者都安装了? 为什么iPhone8plus用不了原装配件 iphone8plus为什么充不上电 换了一根线开始能充 没用俩天就又不能充电了? 苹果8plus数据线要买什么样的 arm9 arm11 cortex-a8 cortex-a9都是什么意思,之间有什么联系? excel区间业绩提点计算公式,制作工资表格,需要利用分段提成进行计算 求函数 问:我是新号,如何免费获得QQ游戏中欢乐麻将的欢乐豆 什么是单反相机、傻瓜相机? 数码相机.单反和傻瓜机有什么不一样.多了什么.少了什么 微单和单反,卡片机和傻瓜相机的区别 什么是单反相机?普通的傻瓜相机算是单反相机吗? 您说APS是傻瓜相机,那我这个也是傻瓜相机吗?怎样区分单反是不是傻瓜相机呢? 相机选择单反还是傻瓜? 如何区别一张照片是用单反相机还是傻瓜相机拍的?? 单反相机用自动档和傻瓜相机有什么区别 我是食品安全检验专业的一名本科学生,我想问一下如果将来想要进入进出口检验检疫局工作,需要考哪些证? 食品安全检验可以考什么编制 食品安全专业的学生需要考取什么证件 我是中药学食品药学专业的,能进食品安全检验所吗?需要考什么证书或者某些专业知识吗? 西红柿汁怎么熬浇凉皮的,谢谢! 西红柿蜂蜜汁怎么做好吃 王牌战士代练的平台有哪些? 王牌战争托管类的工具推荐个?有没有好的选择? 手游班王牌战争游戏代干怎么赚钱?