SELECT s.str_code as store, s.str_desc as description, s.str_org as organization
FROM r5userorganization u , r5stores s WHERE
COALESCE(s.str_notused,'-') = '-'
and s.str_org = u.uog_org
and u.uog_user =<parameter.r5user>
and
s.str_org in (select uog_org from r5userorganization
		  	  where uog_user =<parameter.r5user>
			  and str_org = uog_org )
and str_org not in (select uog_org from r5userorganization,r5stores
				    where uog_user =<parameter.r5user>
					and str_org = uog_org
					and str_org not in ( <control.org>)
					and exists (select 'X' from r5userorganization
							    where uog_common ='-'
								and uog_org=  <control.org>))