Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/05/2015, 16:24
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: consulta SQL en SAP B1

quita el segundo campo en el group by :)

Código SQL:
Ver original
  1. SELECT SUM(MP.INPUT_QTY) * ISNULL($[OWTQ.U_RSG_CANT],0)+
  2. SUM(MP.INPUT_QTY) * ISNULL($[OWTQ.U_RSG_CANT_RH],0)
  3. FROM BEAS_STL MP WHERE MP.ItemCode = $[OWTQ.U_RSG_PT]
  4. OR MP.ItemCode = $[OWTQ.U_PT_RH] AND MP.ART1_ID = $[$23.1.0]
  5. GROUP BY MP.INPUT_QTY
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me