We read your photo as:

Determine the primary keys, foreign keys, and composite keys for the given Employee, Emp_Salary, and Department tables after normalization.

Computer Science

ScanSolve AI Answer

Here are the answers to the database task:

  1. Determine the following table elements after normalization.

    • Primary keys:

      • Employee table: StaffNo\boxed{\text{StaffNo}}
      • Emp_Salary table: (Staff_No, Dept_ID)\boxed{\text{(Staff\_No, Dept\_ID)}}
      • Department table: Dept_ID\boxed{\text{Dept\_ID}}
    • Foreign key:

      • In Employee table: Department\boxed{\text{Department}} (referencing Dept_ID in Department table)
      • In Emp_Salary table: Staff_No\boxed{\text{Staff\_No}} (referencing StaffNo in Employee table) and Dept_ID\boxed{\text{Dept\_ID}} (referencing Dept_ID in Department table)
    • Composite keys:

      • (Staff_No, Dept_ID)\boxed{\text{(Staff\_No, Dept\_ID)}}
    • Table containing composite keys:

      • Emp_Salary\boxed{\text{Emp\_Salary}}
  2. Complete the table below.

    Employees tableEmp_Salary tableDepartment table
    Number of recordsNot providedNot providedNot provided
    Number of attributes632
    Number of key fields221
    Number of fields632

    Explanation for "Number of key fields":

    • Employees table: StaffNo (Primary Key) and Department (Foreign Key) are key fields.
    • Emp_Salary table: Staff_No and Dept_ID together form the Composite Primary Key, and both are also Foreign Keys.
    • Department table: Dept_ID is the Primary Key.
Was this helpful?

Still stuck on this one?

Ask a follow-up, and the answer starts from this question.

Got a different question?Ask your own question
Handwritten step-by-step solution preview

Handwritten Step-by-Step Solution

Get this as a handwritten image on WhatsApp — like a tutor wrote it for you.

Try on WhatsApp