Hola, buenas...
tengo la siguiente instruccion
Select
NumeroCaja,
(select sum(efectivo) from movimiento where...) as TotalEfectivo,
(select sum(cheque) form movimiento where) as TotalCheque
from caja
quisiera tener otro campo calculado que sea TotalEfectivo+TotalCheque
he intentado ...
Select
NumeroCaja,
(select sum(efectivo) from movimiento where...) as TotalEfectivo,
(select sum(cheque) form movimiento where) as TotalCheque,
(TotalEfectivo+TotalCheque) as TotalGeneral
from caja
pero no funciona
debo volver a calcular los totales algo asì?
(select sum(efectivo) from movimiento where...) +(select sum(cheque) form
movimiento where) as Total ???????
Leer las respuestas