Question
employee (employee name, street, city) works (employee name, company name, salary) company (company name, city) manages (employee name, manager name) Solve the following question using
employee (employee name, street, city)
works (employee name, company name, salary)
company (company name, city)
manages (employee name, manager name)
Solve the following question using Oracle
.Give an SQL schema definition for the employee database of Figure 3.20. Choose an appropriate domain for each attribute and an appropriate primary key for each relation schema. Include foreign key constraints where needed. Notice that the relation manages is recursive between employee and employee. Also notice that both employee_name and manager_name are foreign keys in the relation manages referencing the relation employee. Be careful about the order you create the tables.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started