Question 3: Create the DDL statements to create the tables described in your modified ER diagram in Question 2

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Note to Expert: I had asked this question before and was answered by someone, thank you! But I think the expert was mistaken for question 2 and question 1 answer and I don't know if the answer he provided for question 3 is based on question 2 or not. So I had to ask this question again. I did not understand the previous answer. Thank You!

These questions are in sequence and the previous question needs to be referred to answer the next question:

This is the previous question that was asked
Question 1(question to be answered at the end):

Create the Entity-Relationship (ER) Diagram for the following scenario:

We want to maintain a database for a Faculty within a multi-campus regional university. The faculty has a number of schools and each school is characterized by its school-code which is unique, name, and campus location. Schools employ professors who are characterized by their unique staff-id, name and the school they work for. A school offers courses that are characterized by their course-code which is unique, course name and the school. There are subjects offered within the faculty and these are
characterized by unique subject-code, title and the school that offers them. Students enroll into courses that are characterized by student-id which is unique, name, address and phone.

The following business rules apply
• A course must belong to only one school, but a school may have many courses
• A student must be enrolled in a course, but a course may have 0 or more students
• A course must have one or more subjects, but a subject may be taught as part of many courses
• A student may be enrolled in many subjects, and a subject may have many students enrolled in it
• A subject must be taught by a professor, and a processor may teach many subjects
• A professor is employed by only one school, and a school may employ many professors

Answer in the picture

Question 2 (question to be answered at the end):

What can you say about the relationships between Courses and Subject, and Courses and Students? Will there be any problems in creating a Relational Database from your ER diagram? If there is, then describe how you will address this and re-draw the ER diagram.

Updated answer in the picture.

Question 3: Create the DDL statements to create the tables described in your modified ER diagram in Question 2

location
schoolcode
name
Faculty
has
School
name
coursecode
school
Course
offers
employs
staffid
offers
Professor
name
name
has
school
enrolls
school
Subject
subjectcode
enrolls
studentid
Student
name
address
phone
Transcribed Image Text:location schoolcode name Faculty has School name coursecode school Course offers employs staffid offers Professor name name has school enrolls school Subject subjectcode enrolls studentid Student name address phone
location
schoolcode
name
Faculty
has
School
name
school
subjectcode
Course
offers
employs
staffid
offers
Professor
name
name
has
school
enrolls
school
Subject
subjectcode
enrolls
studentid
Student
name
address
phone
Transcribed Image Text:location schoolcode name Faculty has School name school subjectcode Course offers employs staffid offers Professor name name has school enrolls school Subject subjectcode enrolls studentid Student name address phone
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Keywords
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education