EBK CONCEPTS OF DATABASE MANAGEMENT
EBK CONCEPTS OF DATABASE MANAGEMENT
8th Edition
ISBN: 8220100706004
Author: Last
Publisher: Cengage Learning US
Question
Book Icon
Chapter 6, Problem 13RQ

(a)

To determine

To find the relationship between students, courses and faculty members in the specified relation.

(a)

Expert Solution
Check Mark

Explanation of Solution

The given relation is Student(StudentNum_,CourseNum_,FacultyNum_) .

The above relation Student and Faculty has many-to-many relationship since a new table is generated whose primary key is the combination of all primary key.

Since a faculty teaches many students and a student is taught by many faculties. Therefore, the relation between student and faculty is many-to-many relationship.

The relation between Student and Course has many to many relationships since a student can take many courses and a course can be taken by many students.

After creating new table, the collection of tables is as follows:

Faculty(FacultyNum_,Name,Department)Course(CourseNum_,CourseName)StudentFaculty(StudentNum_,StudentName)Student(StudentNum_,CourseNum_,FacultyNum_)

(b)

To determine

To find the relationship between students, courses and faculty members in the specified relation.

(b)

Expert Solution
Check Mark

Explanation of Solution

The given relation is as follows:

Student(StudentNum_,CourseNum_)Faculty(CourseNum_,FacultyNum_)

Since one student can take many courses and one course is taken by many students.

Therefore, the attributes StudentNum and CourseNum in the Student relation used as the primary key shows the many-to-many relationship between StudentFaculty and Course tables.

The relation Faculty and Course has many-to-many relationship since one faculty can be assigned many course numbers and one course number can be assigned to many faculties.

After creating new table, the collection of tables is as follows:

Faculty(FacultyNum_,CourseNum_)Course(CourseNum_,CourseName)StudentFaculty(StudentNum_,StudentName)Student(StudentNum_,CourseNum_)

(c)

To determine

To find the relationship between students, courses and faculty members in the specified relation.

(c)

Expert Solution
Check Mark

Explanation of Solution

The given relation is as follows:

Student(StudentNum_,CourseNum_)Faculty(CourseNum_,FacultyNum_)StudenFaculty(StudentNum_,CourseNum,_FacultyNum_) .

The relation StudentFaculty and Faculty has many-to-many relationship since many students have assigned many courses.

The relation Faculty and Course has many-to-many relationship as many faculties can be assigned many courses.

The relation StudentFaculty and Course has many-to-many relationship since one faculty can be assigned many course numbers and one course number can be assigned to many faculties.

Also, the relation StudentFaculty and Faculty has many to many relationships since one student is taught by many faculties and one faculty can be assigned to many students.

(d)

To determine

To find the relationship between students, courses and faculty members in the specified relation.

(d)

Expert Solution
Check Mark

Explanation of Solution

The given relation is Student(StudentNum_,CourseNum_,FacultyNum_) .

The above relation Student and Faculty has many-to-many relationship since a new table is generated whose primary key is the combination of all primary key.

Since a faculty teaches many students and a student is taught by many faculties. Therefore, the relation between student and faculty is many-to-many relationship.

The relation between Student and Course has many tomany relationships since a student can take many courses and a course can be taken by many students.

After creating new table the collection of tables are as follows:

Faculty(FacultyNum_,Name,Department)Course(CourseNum_,CourseName)StudentFaculty(StudentNum_,StudentName)Student(StudentNum_,CourseNum_,FacultyNum_)

(e)

To determine

To find the relationship between students, courses and faculty members in the specified relation.

(e)

Expert Solution
Check Mark

Explanation of Solution

The given relation is as follows:

Student(StudentNum_,CourseNum_)Faculty(CourseNum_,FacultyNum_)StudenFaculty(StudentNum_,FacultyNum_) .

The relation Student and Course has many-to-many relationship since many students have assigned many courses.

The relation Faculty and Course has many-to-many relationship since many faculties can be assigned to many subjects.

The relation Student and Faculty has many-to-many relationship since one faculty can be assigned many students and one student can be assigned to many faculties.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
1. Consider the following relations:Student (snum: integer, sname: string, major: string, level: string, age: integer)Class (name: string, meets at: string, room: string, fid: integer)Enrolled (snum: integer, cname: string)Faculty (fid: integer, fname: string, deptid: integer)The meaning of these relations is straightforward; for example, Enrolled has onerecord per student-class pair such that the student is enrolled in the class. Level is atwo character code with 4 different values (example: Junior: A Level etc)Write the following queries in SQL. No duplicates should be printed in any of theanswers.i. Find the names of all Juniors (level = A Level) who are enrolled in a classtaught by Prof. Kwizeraii. ii. Find the names of all classes that either meet in room R128 or have five ormore Students enrolled.iii. Find the names of all students who are enrolled in two classes that meet atthe same time.
For developing our queries, we will be using the following relational schema: Student(SID, name, username, major) Course(cname, description, department, weight) Offering(OID, cname, year, term, duration) Enrolled(SID, OID, grade) A course relation is the generic description of a course which is offered by a department. The offering relation is the specific instance of a course being taught in a given term, and is the entity which will be associated with the student enrollment. Students are enrolled in these offerings and achieve a mark. Express each of following queries in Relational Algebra: | Write a relational algebra query which will list the cname and description of all the courses which are being offering in the Fall 2018 term. 2 Write a relational algebra query which will list the name of all the students who have earned 60% in both 'COSC2P12' and 'COSC2P13'.
Following relation schema exists : EMPLOYEE (EMP_ID, EMP_NAME, DEPT, GRADE, SALARY, AGE, ADDRESS). Find functional dependencies in the EMPLOYEE relation and give its graphical representation.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education