 
			
				13/04/2010, 09:59
			
			
			     |  
        |     |    |    Fecha de Ingreso: abril-2010  Ubicación: Bogotá D.C.  
						Mensajes: 4
					  Antigüedad: 15 años, 6 meses Puntos: 0     |        |  
        Respuesta: Problemas con valores NULL        Hola tatis003   
Prueba escribiendo tus subconsultas de esta manera    SELECT DISTINCT G.id_gran AS 'ID',G.nom_gran AS 'NOMBRE', 
                      E.num_plan AS 'PLANILLA', L.id_lot AS 'LOTE', 
                      E.cil_ent AS 'NUMERO CILINDROS', E.pes_cil AS 'PESO B.ENTREGA',  
                      P.num_com_plan AS 'O.COMPRA', sum(E.cil_ent) AS 'TOTAL CIL.ENTREGADOS',       
ISNULL(SELECT DISTINCT LL.pes_cil FROM Llenos AS LL WHERE P.id_plan=LL.num_plan AND E.id_cil=LL.id_cil,0) AS 'PESO B.RETIRO LLENO',   
y continua así con el resto de subconsultas.   
Espero te sirva           |