请教邹大哥一个问题,关于时间和工期的
zyg0 2005-04-28 10:59:03 --表的结构
create table xmrw
(
xmrwid bigint IDENTITY (1, 1),--自增主键
xmrwzt int,--休息状态 3周六休息 2周日休息 1周六周日休息 0,不修
xmrwday bigint, --工期
xmrwtime datetime --任务开始日期
)
insert into xmrw
select '0','3',getdate()
union
select '1','5',getdate()
union
select '3','2',getdate()
union
select '2','7',getdate()
union
select '0','4',getdate()
union
select '1','4',getdate()
union
select '3','5',getdate()
union
select '2','8',getdate()
union
select '0','7',getdate()
我想实现对项目结束日期的查询 项目结束日期 必须+上他在项目中休息的天数
如 他是4月1号开始 4月1日是星期5 工期是2天,他的结束日期就是 4月1日+2天+休息的2天=4月5日