are underlined): CM (DIVISION DEPT BUDGET) describing departments in the company EM (ID NAME CITY DEPT SALARY) describing employees PR (P-ID DIRECTOR-ID CITY DEPT) describing projects EP (P-ID ID HOUR) describing employee participation in proje- CR (C-ID TITLE DEPT TEACHER-ID) describing courses offered ER (C-ID ID GRADE) describing employee enrollments in course The data type for BUDGET, GRADE, HOUR and SALARY is SMALLINT, all other attributes

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Following is the relational schema for a database about a company and its employees, projects, training
courses offered, employee's participation in the projects, and course enrollments (the primary key attributes
are underlined):
CM (DIVISION DEPT BUDGET)
describing departments in the company
EM (ID NAME CITY DEPT SALARY)
describing employees
PR (P-ID DIRECTOR-ID CITY DEPT)
describing projects
EP (P-ID ID HOUR)
describing employee participation in projects
CR (C-ID TITLE DEPT TEACHER-ID)
describing courses offered
ER (C-ID ID GRADE)
describing employee enrollments in courses
The data type for BUDGET, GRADE, HOUR and SALARY is SMALLINT, all other attributes have data
type VARCHAR(20).
Each department has one or more employees, offers zero or more courses, and con-ducts zero or more projects. An
employee can take zero or more courses and work in zero or more projects(including the projects conducted by other
department). Each project has one or more employees working on it, and each course has one or more employces
enrolled in it. The teacher of a course could come from a department different from the one offering the course. The
attributes ID, TEACHER-ID, and DIRECTOR-ID are employee IDs - so TEACHER-ID and DIRECTOR-ID are
foreign keys in CR table and PR table respectively referencing ID attribute in EM table. You should be able to
identify foreign keys in several tables in this database. Note that a table could have more than one foreign keys.
Here the question for you is to identify the foreign keys in the following table(s) and the target (referenced) table for each
foreign key:
For table EM, the attribute
is a foreign key referencing target table
NOW, if a table has MORE THAN one foreign keys, the first foreign key for that table should be about the foreign key
attribute appearing earlier in the table's left-to-right column names.
For table EP, the attribute
is a foreign key referencing target table
For table EP, the attribute
is a foreign key referencing target table
For table ER the attribute
is a foreign key referencing target table
is a foreign key referencing target table
For table ER the attribute
Transcribed Image Text:Following is the relational schema for a database about a company and its employees, projects, training courses offered, employee's participation in the projects, and course enrollments (the primary key attributes are underlined): CM (DIVISION DEPT BUDGET) describing departments in the company EM (ID NAME CITY DEPT SALARY) describing employees PR (P-ID DIRECTOR-ID CITY DEPT) describing projects EP (P-ID ID HOUR) describing employee participation in projects CR (C-ID TITLE DEPT TEACHER-ID) describing courses offered ER (C-ID ID GRADE) describing employee enrollments in courses The data type for BUDGET, GRADE, HOUR and SALARY is SMALLINT, all other attributes have data type VARCHAR(20). Each department has one or more employees, offers zero or more courses, and con-ducts zero or more projects. An employee can take zero or more courses and work in zero or more projects(including the projects conducted by other department). Each project has one or more employees working on it, and each course has one or more employces enrolled in it. The teacher of a course could come from a department different from the one offering the course. The attributes ID, TEACHER-ID, and DIRECTOR-ID are employee IDs - so TEACHER-ID and DIRECTOR-ID are foreign keys in CR table and PR table respectively referencing ID attribute in EM table. You should be able to identify foreign keys in several tables in this database. Note that a table could have more than one foreign keys. Here the question for you is to identify the foreign keys in the following table(s) and the target (referenced) table for each foreign key: For table EM, the attribute is a foreign key referencing target table NOW, if a table has MORE THAN one foreign keys, the first foreign key for that table should be about the foreign key attribute appearing earlier in the table's left-to-right column names. For table EP, the attribute is a foreign key referencing target table For table EP, the attribute is a foreign key referencing target table For table ER the attribute is a foreign key referencing target table is a foreign key referencing target table For table ER the attribute
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY