Forum Discussion
SmithToronto
Jun 21, 2024Copper Contributor
Help in varchar column calculation
Hi, How I can calculate and get the calculation result of calc4 colum. Currently this is varchar but i want to calculate calc1+calc2+calc3 in calc4. Create table Calculation (Calc1 numeric (10,2)...
SmithToronto
Jun 22, 2024Copper Contributor
Hi,
Desired result :
Select * from Calculation
Calc1 calc2 Calc3 Calc4
6 7 8 22
9 9 9 27
Desired result :
Select * from Calculation
Calc1 calc2 Calc3 Calc4
6 7 8 22
9 9 9 27
olafhelper
Jun 24, 2024Bronze Contributor
SmithToronto , as I wrote, error-prone.
You can use a cursor to loop through all records.
- SmithTorontoJun 24, 2024Copper ContributorHi olafhelper, Can you please help on this SQL? Thanks