14.3. Why should NULLs in a relation be avoided as much as possible? Discuss the problem of spurious tuples and how we may prevent it.
14.5. What is a functional dependency?
desirable properties of a relational decomposition
as. We discuss desirable properties of relational decomposition— nonadditive join property and functional dependency preservation property. A gen
14.1. Discuss attribute semantics as an informal measure of goodness for a rela- tion schema.
14.2. Discuss insertion, deletion, and modification anomalies. Why are they con- sidered bad? Illustrate with examples.
14.4. State the informal guidelines for relation schema design that we discussed. Illustrate how violation of these guidelines may be harmful.
14.6. Why can we not infer a functional dependency automatically from a partic- ular relation state?
14.8. Define first, second, and third normal forms when only primary keys are considered.
14.8. How do the general definitions of 2NF and 3NF, which consider all keys of a relation, differ from those that consider only primary keys?
Prime attribute
14.9. What undesirable dependencies are avoided when a relation is in 2NF?
A proper subset of a key of R functionally determines a nonprime attribute. Here we have a partial dependency that violates 2NF.
14.10. What undesirable dependencies are avoided when a relation is in 3NF?
A nonprime attribute determines another nonprime attribute. Here we typi- cally have a transitive dependency that violates 3NF.
fully functionally dependent
A functional dependency X → Y is a full functional dependency if removal of any attribute A from X means that the dependency does not hold anymore
In the reflexive rule, if Y is a subset of X, then X determines Y.
If X ⊇ Y then X → Y
https://www.javatpoint.com/dbms-inference-rule
14.12. Define Boyce-Codd normal form. How does it differ from 3NF? Why is it considered a stronger form of 3NF?
What is a a nontrivial functional dependency?
Trivial functional dependency
Attribute Closure
Attribute closure of an attribute set can be defined as set of attributes which can be functionally determined from it.
How to find attribute closure of an attribute set?
- Recursively add elements to the result set which can be functionally determined from the elements of the result set.
14.13. What is multivalued dependency? When does it arise?
attribute is transitively dependent on the primary key
Note – If A->B and B->C are two FDs then A->C is called transitive dependency.