Homework 4
Contents
Instructions
This homework should be uploaded to Canvas by 11:59pm on Sunday, October 26. All submissions should be in PDF format (if you use Word, select 'PDF' in the 'Save as' dialog). Be sure to list who you've worked with, if anyone.
Questions
1. (5 pts.)
Consider the mondial-3.0.xml dataset we used in class. Write the
2. (5 pts.)
Write the
3. (10 pts.)
Write the <c></c>
tags.
EmployeeID | LastName | FirstName | PositionTitle | PositionLevel | Base | Bonus |
---|---|---|---|---|---|---|
1 | Jones | Janet | Engineer | II | 55000 | 100 |
2 | Jones | Kendal | Engineer | II | 55000 | 0 |
3 | Smith | John | Engineer | I | 50000 | 2500 |
4 | Zachs | April | Engineer | I | 50000 | 0 |
5 | Jackson | George | Manager | III | 75000 | 0 |
6 | Kruger | Pat | Manager | III | 75000 | 0 |
7 | Miller | Lou | Manager | I | 60000 | 4500 |
Functional Dependencies:
- EmployeeID \(\rightarrow\) LastName, FirstName, PositionTitle, PositionLevel
- EmployeeID, LastName, FirstName \(\rightarrow\) Bonus
- PositionTitle, PositionLevel \(\rightarrow\) Base
4. (5 pts.) For the relation and FDs above, what anomalies are exhibited? Explain how each is exhibited.
5. (5 pts.) What is the minimal key for this relation? Prove it using a formal method from the readings and/or videos.
6. (10 pts.) The table is not in BCNF; why not? After you explain the violations of BCNF, convert the relation into a new set of relations that are in BCNF.
7. (10 pts.) Draw the UML diagram corresponding to the relations from HW2. (Back to top)