lot ....................... part .........................process ........................qty
a1 ...................... redcar ........................ a .............................100
a1 ...................... redcar ........................ b .............................200
a1 ...................... redcar ........................ c .............................300
a1 ...................... redcar ........................ d .............................400
a1 ...................... redcar ........................ e .............................500
a1 ...................... redcar ........................ f ..............................600
เวลาผมเลือก part ที่มีชื่อว่า redcar แล้วอยากให้ echo แล้วผลออกมาเรียงแบบนี้ครับ
lot................process1..............qty1..............process2..........qty2 ..........process3................ty3
a1 a 100 b 200 c 300
b2 d 400 e 500 f 600