I have 3 tables:
Employees T
emp_id | name | address
Department T
dep_id | name
Salaries T
emp_id | dep_id | month | year | salary
For each table, what are the primary keys and the foreign keys?
My answer:
Name of the table | PK | FK|
- Employees: emp_id | dep_id
- Department: dep_id || emp_id
- Salaries: emp_id, dep_id | emp_id, dep_id
Is my answer correct?