SELECT a.TPL_TOOL as tool, a.TPL_ACT as activitytrade, a.TPL_MRC as department, a.TPL_QTY as quantityrequired, a.TPL_HOURS as hoursrequested, b.TOO_DESC as description FROM R5TOOLPLAN a JOIN R5TOOLS b where a.TPL_TOOL = b.TOO_CODE and a.TPL_EVENT = <param.workordernum>
