Prueba esto:
Código sql:
Ver originalSELECT t1.articulo articulo,t1.fecha,t1.hora_entrada hora_entrada,
IF(t1.hora_entrada < t2.hora_salida,t2.hora_salida,'--:--') hora_salida
FROM (SELECT cart articulo,fec fecha,hora hora_entrada FROM movimientos WHERE tmov=01)t1
LEFT JOIN
(SELECT cart articulo,fec fecha,hora hora_salida FROM movimientos WHERE tmov=02)t2
ON t1.articulo=t2.articulo ORDER BY t1.articulo;
Parece funcionar