• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 21 pages
Exam (elaborations)

Relational Database Exam Questions Solved 100% Correct

Document preview thumbnail
Preview 3 out of 21 pages

Relational Database Exam Questions Solved 100% Correct

Content preview

Relational Database Exam Questions
Solved 100% Correct
1) What is functional dependency - ANSWER An Attribute Y is Functionally Dependent on an
Attribute X, if a Value for X Determines a Unique Value for Y. X may be a Set of Attributes.
Functional Dependency Example: Employee NumberEmployee Name.



2) What is a full functional dependency - ANSWER An Attribute Y may be Determined by a Set
of Attributes A, B, C (ABCY). If X is a set of Attributes Such That XY and there is no Subset Z of
X so that ZY, then Y is Fully Functionally Dependent on X. Full FD Example: Employee Number,
Dept Employee Name, But Employee Number Employee Name So Employee Name is not Fully
Functionally Dependent on Employee Number and Department



3) What is a transitive dependency - ANSWER Let X, Y, and Z be Attributes such that XY and YZ.
Then a Transitive Dependency Exists Between X and Z such that XZ. Transitive Dependency
Example Employee Number Dept Dept Head. A Transitive Dependency Exists Between
Employee Number and Department Head




Describe the first three normal forms, First Normal Form (1NF) - ANSWER All Data Values Are
Atomic, No Composite Fields, and No Repeating Groups;


Normal Form (2NF) - ANSWER If and Only If All Non


Key Attributes Are Fully Functionally Dependent on The Relation Key. - ANSWER



Third Normal Form (3NF) - ANSWER a Relation is in Third Normal Form if there are no
Transitive Dependencies Between Non


key Attributes. Fourth and Fifth Normal Forms Address Relations that Contain Multi - ANSWER

,Valued Dependencies. - ANSWER



4) Conceptually, what is the difference between normalization via decomposition and
normalization via synthesis - ANSWER Normalization via Decomposition Begins with existing
tables and breaks them down into smaller table. Normalization via Synthesis Begins with Data
Dependencies and aggregates them into table.



5) For each of Armstrong's Axioms, give an example in plain English. Armstrong's Axioms -
ANSWER a. Functional dependency is similar to logical implication

b. Develop a mathematical basis for database design developing a set of axioms for
function dependency.


Reflexive Rule - ANSWER XX
c. Every attribute determines itself

d. Given an Employee number, I can give you a unique employee number that is the one
you gave me.


Augmentation Rule - ANSWER If XY, Then XZY for any Z

e. If employee number determines name, the employee number and any other attribute
will determine name.

f. This is why candidate key requires minimality, otherwise there would be infinitely
many candidate keys.


Union Rule - ANSWER If XY, and XZ, then XYZ

g. If employee # determine name and address, then the employee number determines a unique
pair of name and address.


Decomposition Rule - ANSWER If XY, then XZ where Z is a subset of Y.

h. If employee number determines a set of attributes such as (name, address, phone, etc.)
then it uniquely determine any subset of such as (name, address)
i. This allows us to access columns by the key

, Transitivity Rule - ANSWER If XY and YZ, then XZ

j. If employee # determines department and department determine manager, then employee
# determines manager
k. Third Normal Form


Pseudo Transitivity Rule - ANSWER If XY and YZW, then XZW

l. If employee # determine pay grade and pay grade with current schedule determines salary,
then employee number and current schedule determine salary.



6) What is the closure of a set of functional dependencies - ANSWER Closure of F: Let F be a set
of functional dependencies. The closure of F, denoted F+, is the set of all function dependencies
that can be derived from F using Armstrong's Axioms. Every possible question that can be asked
of that database

Document information

Uploaded on
October 26, 2024
Number of pages
21
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.79

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
KENALI
2.6
(18)
Sold
126
Followers
5
Items
27562
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions