I'm doing a stored procedure, to add some data to a report in crystal reports. I'm doing the following:
(df.valor_unitario * df.cantidad) as vtotality, /*realiza la operacion y el resultado lo muestra en el campo vtotality */
(select sum(vtotality)) as valor_totalist, /*requiero sumar los valores que toma este campo*/
The field that receives the values does not exist in any table in the database, only in the stored procedure, but I have not been able to reference it so that the values it takes can be added.
the present is to add the prices of several articles and generate a total