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...
Database - Relational Theory The state of a table or relation relates to its current content....
Database - Relational Theory The state of a table or relation relates to its current content. Consider the formal terminology of the relational model. 1) Which descriptive term of a relation applies to the state of a relation? 2) Which descriptive term of a relation is not affected a change in the state of the relation? 3) In addition to identifying these terms, provide a brief definition of each of term.
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: consider the following library relational database schema Write a program segment to retrieves the...
Question 2: consider the following library relational database schema Write a program segment to retrieves the list of books that became overdue yesterday and that prints the book title and borrower name for each. 1- Use JDBC with Java as the host language
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?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT