Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/07/2005, 10:40
Sanjuanino
 
Fecha de Ingreso: abril-2002
Mensajes: 9
Antigüedad: 22 años, 1 mes
Puntos: 0
Problema con DataShape

Necesito realizar un campo calculado de una sentencia Shape. Tengo este codigo pero no funciona, me da error en el ultimo renglon.

shape {select Nro,Denominacion,imputable,tipo from cuenta where imputable=false order by tipo} as Tabla1 APPEND ({select Nro,fecha,cuenta,operacion,Debe,Haber, from cuentas order by nro,cuenta,operacion} as Tabla2 RELATE Nro to Nro) as Tabla2, Sum(Tabla2.Debe) as Total1, Sum(Tabla2.Haber) as Total2, (Total1 - Total2) as Saldo