1 2 3 4 5 6
| SELECT DISTINCT (typeof), (h.NumLot+ '_' + h.CodeDestinataire) as N_Outils, d.TpsReglageTheorique, left(h.refart,12) as "Mabec"
FROM HISTOMVT h, detailkits d, articles a, TempsOutils O
WHERE DateMouvt >= ((getdate()-1)) and STATUT = 'A_REGLER' and STATUTANCIEN='LAVE' and h.refart=d.refart AND d.CHARNIERE<>'0'
GROUP BY (typeof), (h.NumLot+ '_' + h.CodeDestinataire), left(h.refart,12), d.TpsReglageTheorique
ORDER BY (typeof), (h.NumLot+ '_' + h.CodeDestinataire), left(h.refart,12), d.TpsReglageTheorique; |
Partager