50 likes | 172 Vues
This document outlines the relationships between employee compensation and deductions within a database schema. It highlights the relationships using foreign keys and emphasizes instances of orphan records. Specific employee records, such as EmpNum 16632, are analyzed to demonstrate these relationships. The framework illustrates how compensation types and deduction types are linked to employees and potentially orphaned scenarios in the database, impacting financial records. This comprehensive view assists in understanding database integrity and employee-related financial transactions.
E N D
Relationship Diagram FK: Emp Num on Addtl Deductions Employee FK: Emp Num on Addtl Compensation 1 PK: Emp Num 1 8 8 Addtl Compensation Addtl Deductions PK: None PK: None 8 8 1 1 Compensation Type Deduction Type PK: Compensation Type PK: Deduction Type FK: Deduction Type on Addtl Deductions FK: Compensation Type on Addtl Compensation
Yes EmpNum 16632 on Addtl Compensation is an orphan Yes EmpNum 16632 on Addtl Compensation is an orphan NO Yes EmpNum 18839 with Deduction Type “G” on Addtl Deductions is an orphan
FK: Unit On the RenterLog Table FK: Renter# On the RenterLog Table FK: Owner Id On the Condo Table FK: Renter# On the Payments Table
NO NO Yes Renter# 1002on Renter Log is an orphan NO