Why am I not getting a correct calculation result in SQL?
I have a script in SQL that in some of the fields I need to sum or perform a certain calculation on several fields
The problem is that instead of the sum it gives me several lines.
The code is: