Dhaval D. answered 11/09/21
Oracle PL/SQL expert with 16+ years working experience
Performance wise below is best query. We should avoid table in from clause from which we donot need take any column in select only validate the value we should take that table in subquery
select a.product_id,a.description,b.rate
from product a, order b
where a.product_id=b.product_id
and exists(select 1
from ,company c
where c.company_id= b.company_id
and c.company_name = 'Ma Maison company');