 
			
				27/10/2015, 17:30
			
			
			     |  
        |     Colaborador   |    |    Fecha de Ingreso: agosto-2006  Ubicación: En la hermosa perla de occidente  
						Mensajes: 7.412
					  Antigüedad: 19 años, 2 meses Puntos: 774     |        |  
  |      Respuesta: Clientes con ventas totales aunque no hayan tenido.          
Código SQL:
 Ver originalSELECT SUM(total), t1.codigo FROM clientes AS t1 LEFT JOIN ventas AS t2 ON (t1.codigo=t2.cliecodigo) GROUP BY t1.codigo 
          
				__________________  What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me           |