select trim(a.taskno) taskno,
(select QR540 from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='1') QR540,(select QR540 from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='2') QR540,
(select QR540 from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='1') QR540,(select QR540 from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='2') QR540,
(select QR540 from prj_wlw where taskno=a.taskno and WORKPROP='3' and worktype='1') QR540,(select QR540 from prj_wlw where taskno=a.taskno and WORKPROP='3'and worktype='2') QR540,
(select RAYLEN from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='1') RAYLEN,(select RAYLEN from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='2') RAYLEN,
(select RAYLEN from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='1') RAYLEN,(select RAYLEN from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='2') RAYLEN,
(select RAYLEN from prj_wlw where taskno=a.taskno and WORKPROP='3' and worktype='1') RAYLEN,(select RAYLEN from prj_wlw where taskno=a.taskno and WORKPROP='3'and worktype='2') RAYLEN,
(select WIRELEN from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='1') WIRELEN,(select WIRELEN from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='2') WIRELEN,
(select WIRELEN from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='1') WIRELEN,(select WIRELEN from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='2') WIRELEN,
(select WIRELEN from prj_wlw where taskno=a.taskno and WORKPROP='3' and worktype='1') WIRELEN,(select WIRELEN from prj_wlw where taskno=a.taskno and WORKPROP='3'and worktype='2') WIRELEN,
(select TWIST from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='1') TWIST,(select TWIST from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='2') TWIST,
(select TWIST from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='1') TWIST,(select TWIST from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='2') TWIST,
(select TWIST from prj_wlw where taskno=a.taskno and WORKPROP='3' and worktype='1') TWIST,(select TWIST from prj_wlw where taskno=a.taskno and WORKPROP='3'and worktype='2') TWIST,
(select REPEATCABLE from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='1') REPEATCABLE,(select REPEATCABLE from prj_wlw where taskno=a.taskno and WORKPROP='1' and worktype='2') REPEATCABLE,
(select REPEATCABLE from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='1') REPEATCABLE,(select REPEATCABLE from prj_wlw where taskno=a.taskno and WORKPROP='2' and worktype='2') REPEATCABLE,
(select REPEATCABLE from prj_wlw where taskno=a.taskno and WORKPROP='3' and worktype='1') REPEATCABLE,(select REPEATCABLE from prj_wlw where taskno=a.taskno and WORKPROP='3'and worktype='2') REPEATCABLE,
from (select distinct taskno from prj_wlw) a order by a.taskno desc