select ar.company,ar.platform from authorized ar
where (ar.company in(1,2) and ar.platform='Amazon' and ar.department in('BITA','BITB'))or (ar.company in(1,2) and ar.platform='eBay' and ar.department in('BITA','BAGY','BBCJ'))
select ar.company,ar.platform from authorized ar
where (ar.company in(1,2) and ar.platform='Amazon' and ar.department in('BITA','BITB'))