Ver Mensaje Individual
  #7 (permalink)  
Antiguo 01/04/2013, 16:16
Avatar de chris225
chris225
 
Fecha de Ingreso: octubre-2012
Ubicación: Medellin
Mensajes: 149
Antigüedad: 11 años, 6 meses
Puntos: 2
Respuesta: consulta que no traiga datos null

Cita:
Iniciado por Libras Ver Mensaje
select
sum(isnull(campo,0)) from
(
select * from tu_query
) as t1 group by campo


saludos!
el group by me daño el sum del subquery y me trae 2 datos y no los suma