
08/10/2014, 07:16
|
 | Colaborador | | Fecha de Ingreso: agosto-2006 Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 7 meses Puntos: 774 | |
Respuesta: agrupar y sumar registros
Código SQL:
Ver originalSELECT servicio, codprod, SUM(cantidad), SUM(precio), SUM(total) FROM tabla GROUP BY servicio,codprod
__________________ What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me |