Professional Documents
Culture Documents
3.select * from (select prod_id,qty_sold from orders order by qty_sold) where rownum < 11;
Part2
Ans 3 select e1.last_name ||’ works for ‘||e2.last_name “Employees and their Managers” from
employees e1,employees e2 where e1.manager_id =e2.employee_id;
Ques4 What are the Oracle Partitions and how they are useful?
Ans Partition enables tables and indexes or index organized tables to be subdivided into smaller
manageable pieces and these each small piece is called a “partition”.
Ques5.What are the oracle parallelism and how they are useful?
Ans
The Oracle database provides functionality to perform a complex task in parallel, without manual
intervention. Operations that can be executed in parallel include:
- Queries
- Index builds
- Gathering statistics
One of the best way to implement parallelism in an Oracle environment is to use Oracle parallel
query(OPQ).
When Oracle has to perform a legitimate, large, full-table scan, OPQ can make a dramatic difference
in the response time. Using OPQ ,Oracle partitions the table into logical chuncks.
Once the table has been partitioned into pieces, Oracle fires off parallel query slaves and each slave
simultaneously reads a single piece of the large table. Upon completion of all slave process, Oracle
passes the results back to