Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have 5 records in a table. Now i want to add the values of TotalAmount, RemainingAmount and make a new cell named as Total Amount. please Give me Any Idea

What I have tried:

I have No idea How can i Do It.
Posted
Updated 8-Apr-18 20:47pm
Comments
OriginalGriff 6-Apr-18 6:00am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
Perhaps sample tables and "Before and after" data would help us?
Use the "Improve question" widget to edit your question and provide better information.

1 solution

Basically, to get what you want to achieve, use SUM[^].

To get running/remaining total, see: SQL SERVER – How to Find Running Total in SQL Server[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900