Unit 2 Two Marks Q&A
Unit 2 Two Marks Q&A
CSE-Staff 1
CS3492-DBMS UNIT - II
Q.7 What are the problems caused by redundancy? AU: Dec.-16, May-18
Ans:Problems caused by Redundancy: Following problems can be caused by redundancy –
i. Redundant Storage: Some information is stored repeatedly.
ii. Update Anomalies: If one copy of such repeated data is updated then inconsistency is created
unless all other copies are similarly updated.
iii. Insertion Anomalies: Due to insertion of new record repeated information get added to the
relation schema.
iv. Deletion Anomalies: Due to deletion of particular record some other important information
associated with the deleted record get deleted and thus we may lose Isbom some other
important information from the schema.
Q.8 Define functional dependency. AU: Dec 04,05, May 05,14,15
Ans: Let P and Q be sets of columns, then: P functionally determines Q, written P→ Q if and only if
any two rows that are equal on (all the attributes in) P must be equal on (all the attributes in) Q.
In other words, the functional dependency holds if
T1.P = T2.P, then T1. Q=T2.Q
Where notation T1.P projects the tuple T1 onto the attribute in P.
CSE-Staff 2
CS3492-DBMS UNIT - II
Q.9 Why certain functional dependencies are called trivial functional dependencies? AU: May-
06,12
Ans:
A functional dependency FD: XY is called trivial if Y is a subset of X. This kind of
dependency is called trivial because it can be derived from common sense. If one "side" is a
subset of the other, it's considered trivial. The left side is considered the determinant and the
right the dependent.
For example - {A,B} -> B is a trivial functional dependency because B is a subset of A,B.
Since (A,B) -> B includes B, the value of B can be determined. It's a trivial functional
dependency because determining B is satisfied by its relationship to A,B
Q.10 Define normalization. AU: May-14
Ans: Normalization is the process of reorganizing data in a database so that it meets two basic
requirements:
1) There is no redundancy of data (all data is stored in only one place), and
2) Data dependencies are logical (all related data items are stored together)
Q.11 State anomalies of 1NF. AU: Dec.-15
Ans: All the insertion, deletion and update anomalies are in 1NF relation.
Q.12 What is multivalued dependency? AU: Dec.-06
Ans: A table is said to have multi-valued dependency, if the following conditions are true,
1) For a dependency A → B, if for a single value of A, multiple values of B exists, then the table may
have multi-values dependency.
2) Also, a table should have at-least 3 columns for it to have a multi-valued dependency.
3) And, for a relation R (A, B, C), if there is a multi-valued dependency between, A and B, then B and
C should be independent of each other.
Q.13 Describe BCNF and describe a relation which is in BCNF.
Ans:
Boyce and Codd Normal Form is a higher version of the Third Normal form. This form deals with
certain type of anomaly that is not handled by 3NF.
A 3NF table which does not have multiple overlapping candidate keys is said to be in BCNF.
Or in other words, for a table to be in BCNF, following conditions must be satisfied:
i) R must be in 3rd Normal Form
ii) For each functional dependency (X → Y), X should be a super Key. In simple words if Y is a prime
attribute, then X cannot be non-prime attribute.
Ans:
4NF is more desirable than BCNF because it reduces the repetition of information. If we consider a
BCNF schema not in 4NF we observe that decomposition into 4NF does not lose information
provided that a lossless join decomposition is used, yet A redundancy is reduced.
Q.15 Give an example of a relation schema R and set of dependencies such that R is in BCNF
but not in 4NF. AU: May-12
Ans: Consider relation R (A, B, C, D) with dependencies
AB→C
ABC→D
AC→B
Here the only key is AB. Thus, each functional dependency has superkey on the left. But MVD has
non-superky on its left. So, it is not 4NF.
Q.16 Show that if a relation is in BCNF, then it is also in 3NF. Ans:AU: Dec.-12
Boyce and Codd Normal Form is a higher version of the Third Normal form.
A 3NF table which does not have multiple overlapping candidate keys is said to ove be in
BCNF. When the table is in BCNF then it doesn't have partial functional dependency as well
as transitive dependency.
Hence it is true that if relation is in BCNF then it is also in 3NF.
Q.17 Why it is necessary to decompose a relation? AU: May-07
Ans:
Decomposition is the process of breaking down one table into multiple tables.
The decomposition is used for eliminating redundancy.
Q.18 Explain atleast two desirable properties of decomposition. AU: May-03,17,19, Dec.-05
Ans:There are two properties associated with decomposition and those are -
1) Loss-less Join or non-Loss Decomposition: When all information found in the original database is
preserved after decomposition, we call it as loss less or nonloss decomposition.
2) Dependency Preservation: This is a property in which the constraints on the wied original table can
be maintained by simply enforcing some constraints on each of the smaller relations.
Q.19 Explain with simple example lossless join decomposition. AU: May-03
Ans:
i. Union of attributes of R1 and R2 must be equal to attribute of R. Each attribute of R must be
either in R1 or in R2.
Att(R1) U Att(R2) = Att(R)
ii. Intersection of attributes of R1 and R2 must not be NULL.
Att(R1) Att(R2) ≠ Φ
iii. Common attribute must be a key for at least one relation (R1 or R2)
Att(R1) Att(R2) -> Att(R1)
CSE-Staff 4
CS3492-DBMS UNIT - II
The association between entity sets is called as participation. That is, the entity sets E1, E2,..., En
participate in relationship set R.
The function that an entity plays in a relationship is called that entity's role.
Q.21 'Boyce-Codd normal form is found to be stricter than third normal form Justify the
statement. AU: Dec.-19
Ans.:
CSE-Staff 5
CS3492-DBMS UNIT - II
i. Every relation which is in BCNF is also in 3NF but every relation which is in 3NF is not
necessarily be in BCNF.
ii. BCNF non-transitionally depends on individual candidate key but there is no such
requirement in 3NF.
Hence BCNF is stricter than 3NF.
Q.22 What is the significance of "participation role name" in the description of relationship
types? AU: Dec.-19
Ans:
Each entity type that participates in a relationship type plays a particular role in the
relationship. The role name signifies the role that a participating entity of an entity plays in each
relationship instance. In PREPARED BY relationship type, EMPLOYEE plays the role of document
creator and voucher plays the role of document created. Entity TEACHER and Entity STUDENT are
related with a relationship TEACHER-teach-STUDENT. The teaches is a participating role in the
entity set TEACHER and STUDENT.
CSE-Staff 6