SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,372 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
Pls help me with this by sending a working query.
Please take a look in the attached image.
I need to get the third column as output where, it is the sum of 4 rows i.e., (sum of every row + its next 3 rows = output in 4th row)
(eg. 10 + 20 +30 + 40 = 100 in 4th row)
(eg. 20 +30 + 40 + 50 = 140 in 5th row)... and so on...
Thanks
Hi,
I have just started learning SQL. Thank you. It works