Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions