Thanks for responding Mark. I have tried implementing something like what you mentioned (how I interpreted it anyways) but am still not getting the correct results. Here's my query,
SELECT trim(substr(pm_element,4,3)) AS department
, pm_str_var as dept_desc
, sales.*
FROM syparamt
LEFT JOIN...