Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a ) Convert the above ER diagram into relational schemas. In a PDF file, specify the followings for each relation: ( i ) the name

a) Convert the above ER diagram into relational schemas. In a PDF file, specify the followings for each relation:
(i) the name of the relation,
(ii) the names of its attributes,
(iii) the domain of each attribute,
(iv) the primary key, and
(v) the foreign key(s), if any.
b) Write SQL commands to create tables and all other structures from part a. For each table in your database, specify primary key and indicate all reasonable foreign key constraints, if any. Use check clause to add the following constraints:
gender can only have 'M' or 'F' as values
payment_method can only have '1' or '2' or '3' as values
Include your SQL commands (create statements) in one script file. Please make sure that your script runs on sqlplus or SQL developer by connecting to Oracle server on Zeus. Submit your script file and a log file showing the output of running the script.
image text in transcribed

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions