Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Reverse engineer an E-R schema from the following relational schema shown in SQL create table zipcodes (zip number (5), City varchar 2(30), primary key (zip))

image text in transcribed

Reverse engineer an E-R schema from the following relational schema shown in SQL create table zipcodes (zip number (5), City varchar 2(30), primary key (zip)) create table employees (eno number(4) not null primary key, ename varchar2(30), zip number (5) references zip codes hdate date); create table parts (pno number (5) not null primary key, pname varchar2(30), qoh integer check (qoh) >= 0), price number (6, 2) check (price >= 0.0), olevel integer); create table customers (cno number (5) not null primary key, cname varchar2 (30), street varchar2(30), zip number (5) references zipcodes, phone char (12)) create table orders (ono number (5) not null primary key, cno number (5) references customers, eno number (4) references employees, received date shipped date); create table odetails(ono number (5) not null references orders, pno number (5) not null references parts, qty integer check (qty > 0), primary key (ono, pno))

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_2

Step: 3

blur-text-image_step3

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

More Books

Students also viewed these Databases questions

Question

2. (1 point) Given AABC, tan A b b

Answered: 1 week ago

Question

4. Show the trainees how to do it again.

Answered: 1 week ago

Question

8. Praise the trainees for their success in learning the task.

Answered: 1 week ago