Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/02/2018, 15:57
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: 3 select mysql en uno

si se puede, con un case

Código MySQL:
Ver original
  1. case when facturado<>"" then sum(cantidad) end as resultado1,
  2. case when facturado="" then sum(cantidad) end as resultado2
  3. ..
  4. ...
  5. ..
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me