Question

In: Computer Science

QUESTION: The following tables describe the content of a relational database: a) Identify and classify the...

QUESTION: The following tables describe the content of a relational database:

a) Identify and classify the tables as either entity or relationship

The first step in building an E-R model is to identify the entities. Having identified the entities, the next step is to identify all the relationships that exist between these entities. Using the content of the relational database above:

b) Using the relations in the relational database, explain how one can transform relationship in E-R model into a separate relation.

C) Suggest a corresponding E-R diagram that captures the table structure.

Solutions

Expert Solution

ANSWER:--

GIVEN THAT;--

There are five relational tables in the given database. These tables are as follows.

1) Student

2) Course

3) Teacher

4) Participate

5) Teaches

a)

As per the given relational database, first three relational tables (Student, Course, and Teacher) represent separate entities. Whereas Participate table represent relationship between Student and Course as "Student Participate in a Course". Also Teaches table represent relationship between Teacher and Course as "Teacher Teaches in Course".

This is depicted by diagrams as below.

b)

As per the given relational database; Student, Course, and Teacher have their special attribute including keys like

1) Student - (studentId, name, address)

2) Course - (courseId, name, address)

3) Teacher - (teacherId,name,address)

So It is clear that studentId, courseId, and teacherId are keys of table Student, Course, and Teacher respectively that uniquely identify an instance of particular entitiy. They are have their own attributes like name and address.

Now two relations Participate and Teaches of given database represent relationship tables in database. As these are relationship tables, It is clear that both the entities (Student,Course in Participate and Teacher,Course in Teaches) involved in both these relationships (Participate,Teaches) are connected with many to many relationship. Because relationship tables are only formed when entities are connected with many to many relatioship.

i.e.

As Participate relationship table is part of database tables, show that Student and Course are forming many to many relationship. In this case Participate relationship table will contain keys from both the entities. As given Participate database table contains key's (studentId and courseId) from both (Student and Course) Entities.

Similarly Teaches relationship table is part of database tables, shows that Teacher and Course are forming many to many relationship. In this case Teaches relationship table will contain keys from both the entities. As given Teaches database table contains key's (teacherId and courseId) from both (Teacher and Course) Entities.

C)

The final E-R diagram after the above explanation is as below.


Related Solutions

The following tables form part of a database (Flights Database) held in a relational DBMS: employee...
The following tables form part of a database (Flights Database) held in a relational DBMS: employee (empNo, empName, empSalary, empPosition) aircraft (aircraftNo, acName, acModel, acFlyingRange) flight (flightNo, aircraftNo, fromAirport, toAirport, flightDistance, departTime, arriveTime) certified (empNo, aircraftNo) Where:  employee contains details of all employees (pilots and non-pilots) and empNo is the primary key;  aircraft contains details of aircraft and C is the primary key.  flight contains details of flights and (flightNo, aircraftNo) form the primary key.  certified...
Describe what a database system is and how it is used. What is a relational database...
Describe what a database system is and how it is used. What is a relational database system and how used in a company to benefit an organization? What does it mean to run a query?
One of the characteristics of good relational database design is normalized tables. Discuss two ways in...
One of the characteristics of good relational database design is normalized tables. Discuss two ways in which normalization helps minimize data redundancy and anomalies such as insertion, deletion, and update anomalies. What are some other characteristics of good database design?
Question 2. The following tables provide some example data that will be kept in the database....
Question 2. The following tables provide some example data that will be kept in the database. Write the INSERT commands necessary to place the following data in the tables that were created in Question 1. Alternatively provide the text files (copy and pasted into your final report) and the open/insert from file commands.. Table: actor act_id | act_fname | act_lname | act_gender 101 | James | Stewart | M 102 | Deborah | Kerr | F 103 | Peter |...
Describe whether big data or a business intelligence application that uses a relational database, is a...
Describe whether big data or a business intelligence application that uses a relational database, is a better fit for the users at each of the three organizational and management levels.
Define what a relational database is. Describe its importance to an organization and why securing it...
Define what a relational database is. Describe its importance to an organization and why securing it is important
Describe the functions provided by a relational database that could be used to record courses taken...
Describe the functions provided by a relational database that could be used to record courses taken by university students in order to manage scheduling and preparing transcripts. Please respond with 200-250 words. Thanks
What are some of the advantages of a relational database system?
What are some of the advantages of a relational database system?
Consider the schemas of the following relational database for a company. The company has different departments...
Consider the schemas of the following relational database for a company. The company has different departments at different cities in different states: employee(employee-id, dept-id, name, street-num, street-name, city, state, zip, salary) department(dept-id, dept-name, city, state) manager(manager-id, employee-id) NOTES: manager-id in the manager relation is a foreign key to the employee relation. employee-id in the manager relation is a foreign key to the employee relation. dept-id in the employee relation is a foreign key to the department relation. An employee belongs...
• Relational Schema Create a relational database schema consisting of the four relation schemas representing various...
• Relational Schema Create a relational database schema consisting of the four relation schemas representing various entities recorded by a furniture company.   Write CREATE TABLE statements for the following four relation schemas. Define all necessary attributes, domains, and primary and foreign keys. Customer(CustomerID, Name, Address) FullOrder(OrderID, OrderDate, CustomerID) Request(OrderID, ProductID, Quantity) Product(ProductID, Description, Finish, Price) You should assume the following: Each CustomerID is a number with at most three digits, each OrderID is a number with at most five digits,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT