Dbms Model Questions & Answers
Dbms Model Questions & Answers
:
4. Explain triggers in SQL
Ans
5. Illustrate attribute types in the ER model with examples
Ans :
6. Explain the concepts of generalization and specialization in EER model
Ans :
7. Build an E-R diagram corresponding to the
relation:Student(RollNo(primary key),Name,DOB,PhoneNo,Age(derived
attribute )and Address(composite attribute)
Ans :
8. Explain the use of High level Conceptual Data Model for Database Design
Ans :
High-level conceptual data models provide concepts for presenting data in ways that
are close to the way people perceive data. A typical example is the entity relationship
model, which uses main concepts like entities, attributes and relationships.
Active State –
When the instructions of the transaction are running then the transaction is in active state.
Partially Committed –
After completion of all the read and write operation the changes are made in main
memory or local buffer.
Failed State –
When any instruction of the transaction fails, it goes to the “failed state” or if failure
occurs in making a permanent change of data on Data Base.
Aborted State –
After having any type of failure the transaction goes from “failed state” to “aborted state”
and since in previous states, the changes are only made to local buffer or main memory
and hence these changes are deleted or rolled-back.
Committed State –
It is the state when the changes are made permanent on the Data Base and the transaction
is complete and therefore terminated in the “terminated state”.
Terminated State –
If there isn’t any roll-back or the transaction comes from the “committed state”, then the
system is consistent and ready for new transaction and the old transaction is terminated.
10 Explain the need for normalization in databases
Ans :
Normalization is the process of structuring and handling the relationship between data to
minimize redundancy in the relational table and avoid the unnecessary anomalies properties from
the database like insertion, update and delete. It helps to divide large database tables into smaller
tables and make a relationship between them. It can remove the redundant data and ease to add,
manipulate or delete table fields.
A normalization defines rules for the relational table as to whether it satisfies the normal form. A
normal form is a process that evaluates each relation against defined criteria and removes the
multivalued, joins, functional and trivial dependency from a relation. If any data is updated,
deleted or inserted, it does not cause any problem for database tables and help to improve the
relational table' integrity and efficiency.
Objective of Normalization
1. It is used to remove the duplicate data and database anomalies from the relational table.
2. Normalization helps to reduce redundancy and complexity by examining new data types
used in the table.
3. It is helpful to divide the large database table into smaller tables and link them using
relationship.