
27/08/2010, 02:44
|
 | | | Fecha de Ingreso: enero-2004
Mensajes: 425
Antigüedad: 21 años, 1 mes Puntos: 1 | |
Respuesta: Concat + group by + mysql
Código MySQL:
Ver originalSELECT institucion_codificacion ,institucion_nombre , SUM(IF(proyecta_tiempo ='N',proyecta_importe ,NULL)) as suma_no , SUM(IF(proyecta_tiempo ='S',proyecta_importe ,NULL)) as suma_si , Left join institucion i ON i.institucion_id =p.proyecta_ruta
|