Zata Leo Assignment3lec
Zata Leo Assignment3lec
2BSIT-5
ASSIGNMENT 3 (LECTURE)
The given tables have anomalies. Formulate a solution for EACH case to correct the problem showing the
following:
A. Functional dependency notation (s)
B. Relation notation (s)
C. Splitted tables in the final solution
D. Entity Relationship diagram (using Lucidchart) in the final solution
CASE 1
BOOKTRANS
studentNo bookCopy bookTitle dateBorrowed bookCode publisher
Functional Notations
Relation Notations
BOOKTRANS (studentNo, bookCopy, dateBorrowed,
bookCopy, bookCode
bookCode, bookTitle, publisher)
SplittedTables
STUDTRANS BOOKCOPYREC
BOOK3_1 BOOK3
BOOKINFO
CASE 2
PERSONNEL
employeeNo lastName firstName gender time- time- dateWorked currentSalary effectiveSalaryDate
in out
1234 Leviste Alex M 8:00 17:01 2020-11-03 21,000 2020-11-01
1235 Carson Maybeline F 7:00 18:05 2020-11-03 22,300 2020-10-15
1234 Leviste Alex M 7:58 17:01 2020-10-24 19,000 2019-04-15
1236 Schimdt Jane F 9:05 16:30 2019-11-03 18,000 2018-12-15
1237 Morrison Viktor M 10:01 18:45 2020-11-05 15,000 2020-11-05
1234 Leviste Alex M 7:00 16:00 2020-11-05 21,000 2020-11-01
1236 Schmidt Jane F 8:00 17:00 2020-11-10 22,000 2020-11-01
1236 Schimdt Jane F 13:00 22:05 2020-11-12 22,000 2020-11-01
Functional Notations
PERSONNEL: employeeNo → lastName, firstName, gender
employeeNo, dateWorked → time-in, time-out
employeeNo, effectiveSalaryDate → currentSalary
Relation Notations
PERSONNEL (employeeNo. lastName, firstName, gender
employeeNo, dateWorked, time-in, time-out
employeeNo, effectiveSalaryDate, currentSalary)
Splitted Tables
EMP_INFO
employeeNo lastName firstName gender
1234 Leviste Alex M
1235 Carson Maybeline F
1236 Schimdt Jane F
1237 Morrison Viktor M
ATTEND_INFO
employeeNo dateWorked time-in time-out
SALARY_INFO
employeeNo effectiveSalaryDate currentSalary
1234 2020-11-01 21,000
1235 2020-10-15 22,300
1234 2019-04-15 19,000
1236 2018-12-15 18,000
1237 2020-11-05 15,000
1236 2020-11-01 22,000
Leo Zata
2BSIT-5
ERD