我怎样才能获得最后一排 [英] How Can I Get Some Of Last Rows
本文介绍了我怎样才能获得最后一排的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我有一张如下表格:
number
-----
3
5
2
3
4
Hi all , i have a table like below :
number
-----
3
5
2
3
4
select Number from MyTable
我想添加一个列,其中包含一些带有select语句的预览列,并提供下表。
and i would like to add a column which contain some of previews columns with a select statement and provide the below table .
number sum
-----------------
3 3
5 8
2 10
3 13
4 17
select Number,sum = ??? from MyTable
谢谢。
Thank you .
推荐答案
喜欢这个?
在SQL Server中计算简单运行总计 [ ^ ]
这篇关于我怎样才能获得最后一排的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文