Answered step by step
Verified Expert Solution
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 keys 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 or as values
paymentmethod can only have or or 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.
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