Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/08/2011, 13:33
ingleonidas
 
Fecha de Ingreso: abril-2010
Mensajes: 87
Antigüedad: 14 años, 1 mes
Puntos: 1
Respuesta: SUM de un GROUP BY (nvarchar) - SOLUCIONADO

Gente, gracias por sus respuestas.
Al final lo solucione con un UNION ALL

Código:
select r.CAMPO, count(r.CAMPO) as Cantidad
from Table1 p, Table2 r 
where p.Ramo = cast(r.RAMO as CHAR(2)) group by r.CAMPO
union all
select 'TOTAL' as CAMPO, count(r.CAMPO) as Cantidad 
from Table1 p, Table2 r 
where p.Ramo = cast(r.RAMO as CHAR(2))
Salu2 a todos..
leo