Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT R.ProductID,
- Varianza = AVG(DATEDIFF(day, ScheduledStartDate, ActualStartDate)),
- Varianza_Ajustada = AVG(NULLIF(DATEDIFF(day, ScheduledStartDate, ActualStartDate), 0))
- FROM Production.WorkOrderRouting R
- GROUP BY R.ProductID
- ORDER BY R.ProductID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement