NAME
CSE 670: Final Exam
Mo, March 16
Open Notes, Open Books
The exam consists of four problems
Answers not appearing in designated spaces WILL NOT be graded

Don’t include the code that establishes the connection with the database.
| AB | → C |
| B | → D |
| CD | → E |
| CE | → GH |
| G | → A |
3NF? Justify your answer.
BCNF? Justify your answer.
w.SSN, d.DNAME | WORKS_ON(w) and DEPARTMENT(d) and ( ∃ e1, ∃ e2 ) ( EMPLOYEE(e1) and
EMPLOYEE(e2) and (e1.SSN = w.SSN) and (e2.SSN = w.SSN + 1) )
EMPLOYEE
| NAME | SSN | CITY |
| Anna | 125-21-0987 | Cincinnati |
| Deborah | 124-12-3456 | Cleveland |
| Doug | 123-45-6789 | Columbus |
| Steve | 251-21-9870 | Cincinnati |
WORK_ON
| SSN | DNUM |
| 123-45-6789 | 1 |
| 124-12-3456 | 2 |
| 125-21-0987 | 1 |
| 251-21-9870 | 1 |
DEPARTMENT
| DNAME | DNUMBER | CITY |
| compiler | 1 | Columbus |
| database | 2 | Cincinnati |
so that the query
w.DNUM, d.DNAME | WORKS_ON(w) and DEPARTMENT(d) and ( ∃ e1, ∃ e2 ) ( EMPLOYEE(e1) and
EMPLOYEE(e2) and (e1.SSN = w.SSN) and (e2.SSN = w.SSN + 1) )
will produce the following output.