sql 根据不同的类型和年份 累加值

来源:互联网 发布:达内php培训怎么样 编辑:程序博客网 时间:2024/06/05 00:24
http://sql根据不同的类型和年份 累加值 http://sql根据不同的类型和年份 累加值点击打开链接 点击打开链接 点击打开链接 select a.*,
(select sum(price) from Interview as 
where b.City=a.City and b.Year  <=a.Year    ) as sumPrice
FROM Interview as  a
0 0