In Oracle, subqueries are the queries inside a query. Subqueries can be made using WHERE, FROM or SELECT clause.
Query: Select name, city from employee1 where id in (select id from employee2 where designation='Shareholder')
Query: Select e.id, e.city, e.name, e1.designation from employee1 e join employee2 e1 on (e.id = e1.id)