• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/16

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

16 Cards in this Set

  • Front
  • Back

Functional dependency:

1. Attribute B has a functional dependency on attribute A if, for each value of attribute A, there is exactly one value of attribute B.



2. An attribute may be functionally dependent either on a single attribute or on a combination of attributes.

Trivial functional dependency:

An attribute depends on a superset of itself.

Full functional dependency:

An attribute is fully functionally dependent on a set of attributes X if.


1. Functionally dependent on X, and


2. Is not functionally dependent on any proper subset of X.


E.G {Employee Address} has a functional dependency on {Employee ID, Skill}, but not a full functional dependency, for it is also dependent on {Employee ID}.

Transitive dependency:

A transitive dependency is an indirect functional dependency, one in which X→Z only by virtue of X→Y and Y→Z.

Multivalued dependency:

A multivalued dependency is a constraint according to which the presence of certain rows in a table implies the presence of certain other rows.

Join dependency:

A table T is subject to a join dependency if T can always be recreated by joining multiple tables each having a subset of the attributes of T.

Superkey:

A superkey is an attribute or set of attributes that uniquely identifies rows within a table; in other words, two distinct rows are always guaranteed to have distinct superkeys. {Employee ID, Employee Address, Skill} would be a superkey for the "Employees' Skills" table; {Employee ID, Skill} would also be a superkey.

Candidate key:

A candidate key is a minimal superkey, that is, a superkey for which we can say that no proper subset of it is also a superkey. {Employee Id, Skill} would be a candidate key for the
"Employees' Skills" table.

Non-prime attribute:

A non-prime attribute is an attribute that does not occur in any candidate key. Employee Address would be a non-prime attribute in the "Employees' Skills" table.

Primary key:

Most DBMSs require a table to be defined as having a single unique key, rather than a number of possible unique keys. A primary key is a candidate key which the database designer has designated for this purpose.

First Normal Form (1NF)

A relation (table) must not have any duplicate records. In other words, it must have at least one candidate key.



Every column must be atomic, i.e. single-valued with respect to its datatype. In other words, a column may represent exactly one member from its domain.

Second Normal Form (2NF)

The table (relation) must be in 1NF.



Functional dependencies of non-prime attributes on candidate keys are full functional dependencies. If a non-prime attribute of a table is functionally dependent on only a part (subset) of a candidate key, this table is not in 2NF.



Third Normal Form (3NF)

No non-prime attribute is transitively dependent on a candidate key. If a non-prime attribute is only indirectly dependent (transitively dependent) on a candidate key, this table is not in 3NF.



Alternative way to determine if a table is in 3NF:



For any functional dependency X → A, at least one of the following conditions holds:


X contains A


X is a superkey


A is a prime attribute



Boyce-Codd Normal Form (BCNF)

A table is in Boyce-Codd normal form (BCNF) if and only if, for every one of its non-trivial functional dependencies X → Y, X is a superkey. i.e., X is either a candidate key or a superset thereof.



2NF prohibits partial functional dependencies of non-prime attributes on candidate keys.



3NF prohibits transitive functional dependencies of non-prime attributes on candidate keys.




BCNF does not permit any functional dependency in which the determinant set of attributes is not a candidate key (or superset of a candidate key).



Fourth Normal Form (4NF)

A table is in fourth normal form (4NF) if and only if, for every one of its non-trivial multivalued dependencies X -->> Y, X is a superkey, i.e., X is either a candidate key or a superset thereof.



4NF ensures that independent multivalued facts are correctly and efficiently represented in a database design.



A table with a multivalued dependency often causes redundancy. 4NF removes this redundancy.




Fifth Normal Form (5NF)

A 4NF table is said to be in the 5NF if and only if every join dependency in it is implied by the candidate keys.



5NF is designed to reduce redundancy in relational databases recording multi-valued facts by isolating semantically related multiple relationships.