select
c.cmd_code as comm,
c.cmd_desc as commdesc,
c.cmd_org as commorganization
from r5commodities c, r5userorganization u where
c.cmd_org= u.uog_org and u.uog_user = <parameter.r5user> and
( u.uog_common = '+' or u.uog_org = <control.org> ) and coalesce(c.cmd_notused, '-') = '-'
