Add one column values

This is my single column table
====================
===
|10|
===
|20|
===
|30|
===
|40|
===
and I want to print out put like this
O/p:
10
===
30
===
50
===
70
How can i get this ?

Questions by Amaleswar

Showing Answers 1 - 15 of 15 Answers

Julio

  • Feb 8th, 2016
 

You need to use a Substring Function, depends of the tool you are using, be in most cases is like this Sub(Colum, Begin, End) --> sub (Input_Colum, 2,4).

  Was this answer useful?  Yes

Tahir Azuz

  • Feb 17th, 2016
 

This is an easy case. we need to sum the data until previous row to get the desired results query can be something like as follows

Code
  1. Select  SUM(col_name) OVER( order by Col_name asc rows preceeding )

  2. from table_name;


  Was this answer useful?  Yes

shivakumar

  • Jun 12th, 2017
 

Select Trim(column_name) from table;

  Was this answer useful?  Yes

Akash

  • Jun 24th, 2017
 

Use router {mod(IP,2)=1}

  Was this answer useful?  Yes

Rajath

  • Dec 15th, 2017
 

Use CSUM command

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions