年修计算
来源:互联网 发布:软件人才外包ren 编辑:程序博客网 时间:2024/05/16 11:57
declare @人员 table (ID int,XM varchar(20),工龄 int)
insert @人员
select 1,'a',3
union all select
2,'b',5
union all select
3,'c',6
union all select
4,'d',7
union all select
5,'e',9
declare @人员休息天数 table (
ID int,
工龄 int,
年休天数 int
)
insert @人员休息天数 select
1, 5, 3
union all select
2, 7 , 5
union all select
3, 10 , 7
union all select
4, 11 , 10
select a.*,b.年休天数
from @人员 a,@人员休息天数 b
where a.工龄<=b.工龄
and not exists (
select 1 from @人员休息天数
where 工龄<b.工龄
and 工龄>=a.工龄
)
- 年修计算
- 润年计算方式
- 年、周、日期计算
- 中国计算50年
- [shell]计算闺年
- 计算
- 计算
- 计算
- 计算
- 计算
- 计算
- 计算
- 计算
- 计算
- 计算
- 计算
- 计算
- 计算
- 必备歌曲--超经典
- 最感人的第100次对不起
- 黑客之门(hacker's door) 1.2 版
- 二叉树中序建立递归算法,完整程序
- TCP连接的状态转换图深度剖析
- 年修计算
- session的深入理解
- JSP2.0中Simple Tag介绍
- 术士assist宏
- 对象的成员函数中抛出的异常
- 构造函数中抛出的异常
- 卡通渲染(Toon Shading/Cel Shading)
- Free Talk:First article...
- 部署.net平台的程序