select 
t.trd_code as trade,
t.trd_desc as tradedesc,
t.trd_org as tradeorganization
from r5trades t, r5userorganization u where  
t.trd_org = u.uog_org and u.uog_user = <parameter.r5user> and  
( u.uog_common = '+' or u.uog_org = <control.org> ) and coalesce(trd_notused, '-') = '-'