@SQL的累加,根据年份和类型
http://sql根据不同的类型和年份 累加值
http://sql根据不同的类型和年份 累加值点击打开链接 点击打开链接 点击打开链接
select a.*,
(select sum(price) from Interview as b
where b.City=a.City and b.Year <=a.Year ) as sumPrice
FROM Interview as a
作者:呆萌小熊
来源:CSDN
原文:https://blog.csdn.net/qq_15626677/article/details/71124489
版权声明:本文为博主原创文章,转载请附上博文链接!