JNTU
JNTU B.Tech II DATABASE MANAGEMENT SYSTEMS Previous Question Paper (August/September - 2022 - R13)
Answer any Five Questions. All Questions Carry Equal Marks.
Main
What are the functions of DBMS? Explain.
Answer
A Database Management System (DBMS) serves as an interface between the database and end-users or application programs. Its primary functions include:
- Data Definition: Provides the ability to define, modify, and remove the definitions that determine how data is stored and structured in the database.
- Data Manipulation: Enables users to insert, retrieve, update, and delete data from the database using a query language like SQL.
- Data Security and Integrity: Enforces security constraints to prevent unauthorized access and maintains data integrity by ensuring that data follows defined rules and constraints.
- Concurrency Control: Manages simultaneous access to the database by multiple users, ensuring that transactions are executed in a way that maintains consistency and avoids conflicts.
- Backup and Recovery: Provides mechanisms to restore the database to a consistent state in the event of hardware failure, software errors, or system crashes.
- Data Dictionary Management: Maintains a repository of metadata that describes the structure, relationships, and constraints of the data within the system.
- Performance Tuning: Optimizes the efficiency of database operations, such as query execution and indexing, to ensure fast data access.
Define the concept of aggregation. Give two examples of where this concept is useful.
Answer
Aggregation is an abstraction concept in the Entity-Relationship (ER) model that allows a relationship between entities to be treated as a higher-level entity. This is necessary when we need to express a relationship involving another relationship, which is not possible using standard binary relationships.
Examples of its utility include:
- Project Management: If an employee works on a project, we may need to track which manager oversees that specific 'Employee-Works-On-Project' relationship. Aggregation allows us to treat the relationship as a single entity to link it to a manager.
- Service Contracts: In a system where a technician services a piece of equipment, we might need to record the 'Service-Report' for that specific interaction. By aggregating the 'Technician-Services-Equipment' relationship, we can associate it with a 'Service-Report' entity, effectively linking the report to the specific instance of the service event.
Explain the following: i) Query languages ii) Data Independence.
Answer
Sign in to view the complete answer paper.
What is E-R Model? Draw an ER- diagram for library management.
Answer
Sign in to view the complete answer paper.
Explain the natural join and division operations in relational algebra with examples.
Answer
Sign in to view the complete answer paper.
Let R=(ABC) and S=(DEF) let r(R) and s(S) both relations on schema R and S. Give an expression in the tuple relational calculus that is equivalent to each of the following: i) r×s ii) σB=25(r) iii) πA,F(σC=D(r×s))
Answer
Sign in to view the complete answer paper.
What is trigger? What are its three parts? What are the differences between row level and Statement level triggers in SQL?
Answer
Sign in to view the complete answer paper.
Explain about set membership and set comparison operations in SQL with examples.
Answer
Sign in to view the complete answer paper.
What conditions are required for a relation to be in BCNF? Give an example of a relation that is BCNF.
Answer
Sign in to view the complete answer paper.
What do you mean by dependency preserving decomposition? Explain with an example.
Answer
Sign in to view the complete answer paper.
Consider the relation R(A,B,C,D,E,F) and the following set of functional dependencies for a relation R scheme. F={A→B, BC→E, ED→A}. Find the list of candidate keys of R and check whether R is in 3NF or BCNF.
Answer
Sign in to view the complete answer paper.
Explain why 4 NF normal forms is more desirable than BCNF.
Answer
Sign in to view the complete answer paper.
What is transaction? Explain the properties of transaction.
Answer
Sign in to view the complete answer paper.
Explain the two phase commit protocol with an example.
Answer
Sign in to view the complete answer paper.
Give an overview of various file organization mechanisms.
Answer
Sign in to view the complete answer paper.
Demonstrate with an example insertion operation in B+ tree for the values 8, 11, 2, 6, 18, 22, 17.
Answer
Sign in to view the complete answer paper.