Question

Question 2 (5 Marks) What can you say about the relationships between Courses and Subject, and...


Question 2

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.

Question 3

Create the DDL statements to create the tables described in your modifies ER diagram in Question 2.

Question 4

In your Database you created in Question 3, assume there is a student record for student

12543 Paul Darbyshire

who is enrolled in the course

BIS Bachelor of Information Systems

It is the beginning of Semester 1 2020. Paul wants to drop all his current subjects for this semester and change courses from the BIS course to the BHR Bachelor of Human Resources course. This is a new course and won’t begin until Semester 2 2020. Paul needs to be enrolled in the following 3 subjects for semester 2 2020

HR101 Introduction to Human Resources HR211 HR for Medium Level Enterprises HR201 HR for Dummies

Discuss any changes you may need to make to your database from Question 3 given this information and provide the SQL statements in order to accomplish the above tasks.

Homework Answers

Answer #1

2. Relation between Courses and Subject is Many to Many and relation between Courses and Students is also Many to Many.

Explanation:

One course can contain many subjects and also each subject can be taught in more than one course.

One student can enroll in as many courses as he wants and also each course has many students enrolled.

There will be no problem creating database from the ER diagram.

3. We will create 3 tables. Courses, Subject and Students

Courses table:

create table courses(cid number(5) primary key, cname varchar(40) not null unique);

Subject table:

create table subject(sid number(5) primary key, sname(40) unique,cid number(5) foreign key references courses(cid));

Students table:

create table students(s_id number(5), sname varchar(20),cid number(5) foreign key references courses(cid));

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
SQL Data: you can just copy paste it into mysql to. CREATE DATABASE University;USE University; CREATE...
SQL Data: you can just copy paste it into mysql to. CREATE DATABASE University;USE University; CREATE TABLE Student (  sid INT PRIMARY KEY,  name VARCHAR(20) NOT NULL,  address VARCHAR(20) NOT NULL,  major CHAR(2)); CREATE TABLE Professor (  pid INT PRIMARY KEY,  name VARCHAR(20) NOT NULL,  department VARCHAR(10) NOT NULL); CREATE TABLE Course (  cid INT PRIMARY KEY,  title VARCHAR(20) NOT NULL UNIQUE,  credits INT NOT NULL,  area VARCHAR(5) NOT NULL); CREATE TABLE Transcript (  sid INT,  cid INT,  pid INT,  semester VARCHAR(9),  year YEAR,  grade CHAR(1) NOT NULL,  PRIMARY KEY (sid, cid, semester, year),  FOREIGN KEY (sid) REFERENCES Student...
FIRST QUESTION 1. You work in a software engineering team to develop a new system for...
FIRST QUESTION 1. You work in a software engineering team to develop a new system for a local retail store. One of the team member proposed to use a model-driven engineering approach. What factors you need to consider to decide whether to agree or disagree to use the new approach. SECOND QUESTION 1. Develop a sequence diagram showing the interactions involved when a student registers for a course in a university. Courses may have limited enrollment, so the registration process...
Description In this project you will practice what we have learned in class about Design, ER...
Description In this project you will practice what we have learned in class about Design, ER Diagrams, Relational Models, DDL, SQL, CRUD (Create, Update, Delete) operations, associated queries, and mock data population. The goal is to create a realistic professional database/development experience. This assignment will describe the requirements for the database as you might receive them. You will need to fill in the details as you work on it. You will find that your work may be iterative, and you...
The questions to answer regarding the case material are as follows: Company overview . How the...
The questions to answer regarding the case material are as follows: Company overview . How the company uses its own products or services to enhance the total compensation for its employees. The internal strengths and weaknesses you identified and how the company responded to these factors from a total rewards perspective. The external opportunities and threats you identified and how the company responded to these factors from a total rewards perspective. Examples of traditional and non-traditional rewards and how they...
What are 4 key things you learned about the topic from reading their paper? How does...
What are 4 key things you learned about the topic from reading their paper? How does the topic relate to you and your current or past job? Critique the paper in terms of the organization and quality. Team 3 answer questions above. Part I In today’s world we see fear among people when dealing with sexual harassment. This leads to people not reporting sexual harassment. A misconception about sexual harassment is that it’s only about touching and forcing other people...
In narrative essay format, I want you to address a business/organization case study using multiple concepts...
In narrative essay format, I want you to address a business/organization case study using multiple concepts from class. The case question and case text begin on page 5 of this document. You need to demonstrate their best understanding of management and organizational behavior theory, and the application of those ideas to improve the understanding of various issues. You need to clearly identify at least 3 distinct, substantive issues. For each issue you need to 1), identify evidence from the case...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT