DBMS Notes
DBMS Notes
MODULE 2
Query Processing and Optimization
Ques1: Define query processing. Discuss the various steps involved in query processing.
Draw the architecture of query processing.
Query processing in database management system (DBMS) involves selecting the best
strategy to respond to a database request. It involves translating a high-level query into a low-
level query which the database system can execute. The key steps in query processing
include:
The query optimizer is made up of three parts: transformer, estimator and plan generator.
The figure below depicts those components.
Estimator: The estimator is the optimizer component of the query optimizer that calculates
the total cost of a given execution plan.
Plan Generator: The plan generator investigates multiple execution plans for executing a
query.
The plan with the lowest cost is chosen by the optimizer.
Query optimization reduces database response times, reduces resource consumption and
reduces the cost of execution. Overall it leads to an improved user experience, increasing
satisfaction and productivity.
Ques3: How does the concept of an object in object oriented data model differ from the
concept of entity in entity relationship model ?
Object in OODM Entity in ER Model
In OODM, objects represent real-world In ER model, entities represent real-world
entities. objects.
Objects have attributes and behavior Entities have attributes which describe the
associated with them. data associated with them.
Objects focus on the behavior and actions ER Model focuses relationships between
which can be performed on the data they entities, with less emphasis on behavior.
encapsulate.
Disadvantages of ORDBS
1. Learning ORDBS can be complex.
2. There is no universally agreed-upon data model for OODBS, leading to a lack of
standards and interoperability between different systems.
3. The model can become complicated.
1. They allow the representation of data in a way that closely resembles the real-world
entities.
2. They are highly flexible and adaptable and are capable of handling changes in data
structures with ease.
3. They promotes reusability and sharing of code.
4. They provide better performance for complex relationships.
Ques8: What are the limitations of relational database ? How does OODB overcome the
limitation of relational database ? How does ORDB overcome the limitation of
relational database ?
Limitations of Relational Databases:
Relational databases are less adaptable to evolving data structures.
Representing complex relationships in relational databases can be challenging.
1. OODBs are flexible adaptable and are capable of handling changes in the data
structures with ease.
Ques9: Give some applications where Object Oriented databases may be useful.
CAD/CAM systems, geographic information systems, and document management systems,
Molecular science and astronomy.
MODULE 1
Relational Database
Ques1: