答案 0 :(得分:0)
select datepart(year,dateadd(day,-1,week_dt_start)) * 100 +
datepart(week,dateadd(day,-1,week_dt_start)) as prev_week,
datepart(year,dateadd(day,1,week_dt_end)) * 100 +
datepart(week,dateadd(day,1,week_dt_end)) as next_week
from tablename