Question
1.Solve the following questions using Oracle. All comments and non executable Oracle statements in these files must start with the keyword REM (you may also
1.Solve the following questions using Oracle. All comments and non executable Oracle statements in these files must start with the keyword REM (you may also use Java/C++ comment styles)
Include foreign key constraints where needed. Notice that the relation manages is recursive between employee and employee (similar to the relations prereq and course in the university database.) 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.
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. Reference Figure 3.20: employee ( works (employee-name, companyame, salary) company (company name, city) manages (employee name, manager name) employee name, street, city) Figure 3.20 Employee database
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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