Question

create relational schema

Create the relational schema.


Professors have a Social Security Number, a name, an age, a rank, and a research specialty.

Projects have a project number, a sponsor name, a starting date, an ending date, and a budget.

Graduate students have Social Security Number, a name, an age, and a degree program (e.g., M.S. Or Ph.D.).

Each project is managed by one professor (known as the project’s principal investigator).

Each project is worked on by one or more professors (known as the project’s co-investigators).

Professors can manage and/or work on multiple projects.

Each project is worked on by one or more graduate students (known as the project’s research assistants).

When graduate students work on a project, a professor must supervise their work on the project. 

 Graduate Students can work on multiple projects, in which case they will have a (potentially different) supervisor for each one.

Departments have a department number, a department name, and a main office

Departments have a professor (known as the chairman) who runs the department.

 Professors work in one or more departments, and for each department that they work in, a time percentage is associated with their job.

Graduate students have one major department in which they are working on their degree.

0 0
Add a comment Improve this question Transcribed image text
✔ Recommended Answer
Answer #1

Based on the provided information, we can create the following relational schema for the database:


1. Professors:

   - SSN (Social Security Number) [Primary Key]

   - Name

   - Age

   - Rank

   - Research Specialty


2. Projects:

   - Project Number [Primary Key]

   - Sponsor Name

   - Starting Date

   - Ending Date

   - Budget

   - Principal Investigator (Foreign Key referencing Professors.SSN)


3. Project_CoInvestigators:

   - Project Number [Foreign Key referencing Projects.Project Number]

   - Co-Investigator SSN (Foreign Key referencing Professors.SSN)


4. Graduate_Students:

   - SSN (Social Security Number) [Primary Key]

   - Name

   - Age

   - Degree Program


5. Project_Research_Assistants:

   - Project Number [Foreign Key referencing Projects.Project Number]

   - Research Assistant SSN (Foreign Key referencing Graduate_Students.SSN)

   - Supervisor SSN (Foreign Key referencing Professors.SSN)


6. Departments:

   - Department Number [Primary Key]

   - Department Name

   - Main Office

   - Chairman SSN (Foreign Key referencing Professors.SSN)


7. Professors_Departments:

   - SSN (Social Security Number) [Foreign Key referencing Professors.SSN]

   - Department Number [Foreign Key referencing Departments.Department Number]

   - Time Percentage


8. Graduate_Students_Departments:

   - SSN (Social Security Number) [Foreign Key referencing Graduate_Students.SSN]

   - Department Number [Foreign Key referencing Departments.Department Number]


In this schema, the primary keys are denoted by [Primary Key], and the foreign keys are denoted by [Foreign Key]. The foreign keys reference the primary keys of other tables to establish relationships between the entities. For example, the Project_Research_Assistants table connects the projects, graduate students, and professors by referencing their respective SSNs as foreign keys. Similarly, the Professors_Departments table establishes the relationship between professors and departments, taking into account the time percentage of their job in each department.


answered by: Aratrika
Add a comment
Know the answer?
Add Answer to:
create relational schema
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • SQL Queries 1) Use the following relations to answer the problems below. Person(SSN, Age, Name) P...

    SQL Queries 1) Use the following relations to answer the problems below. Person(SSN, Age, Name) Professor(SSN, Rank, Specialty) GraduateStudent(SSN, DegreeProgram, AdvisorSSN, DepartmentNumber) Project Number, StartDate, EndDate, Budget, SponsorOrganizationName) DepartmentNumber, Name, Abbreviation, MainOffice, ChairmanSSN) WorksFor(ProfessorSSN, Department Number, TimePercentage) WorksOn(GraduateStudentSSN, ProjectNumber, SupervisingProfessorSSN) Retrieve the Name and Specialty of all Professors who do not supervise work projects. This solution must meet the following conditions: D a. Uses at most one inner joirn b. Uses at most one outer join cNo subqueries al d....

  • In this phase of the project you will create an ERD based upon the following requirements and bus...

    In this phase of the project you will create an ERD based upon the following requirements and business rules. Limit your ERD to entities and relationships based on the business rules showed here. In other words, do not add realism to your design by expanding or refining the business rules. However, make sure you include all attributes needed that would permit the model to be successfully implemented, including all primary and foreign keys. 1. Trinity College (TC) is divided into...

  • Consider the following relational schema as part of a university database: -age-sex-s-q339281 39 Prof(sin, pname, oce,...

    Consider the following relational schema as part of a university database: -age-sex-s-q339281 39 Prof(sin, pname, oce, age, sex, specialty, dept did) Dept(did, dname, budget, num majors, chair sin) ssume the following queries are the most common queries in the workload for this university and they are almost equivalent in frequency and importance ssume that both B+ trees and hashed indexes are supported by the DBMS and that both single- and multiple-attribute index search keys are permitted. Specify the attributes you...

  • Question2 Consider the following relational schema as part of a university database: Prof(sin, pname, o_ce, age, sex, specialty, dept did) Dept(did, dname, budget, num_majors, chair_sin) Assume the fo...

    Question2 Consider the following relational schema as part of a university database: Prof(sin, pname, o_ce, age, sex, specialty, dept did) Dept(did, dname, budget, num_majors, chair_sin) Assume the following queries are the most common queries in the workload for this university and they are almost equivalent in frequency and importance: Assume that both B+ trees and hashed indexes are supported by the DBMS and that both single- and multiple-attribute index search keys are permitted. Specify the attributes you recommend indexing on,...

  • Using DDL (data definition language) statement(create table statement) to define each relation schema, i.e., giving the...

    Using DDL (data definition language) statement(create table statement) to define each relation schema, i.e., giving the create table statement for each relation schema with the definition of primary key in each table. Each employee has a name, social security number (primary key), gender, age, and salary. Each employee works for only one department, and there are more than one employee working in a department. Each department has a department name, a department number (pk), and a department location.

  • Intro to database systems question: Question2 (20 points, 5 points each) Consider the following relational schema as part of a university database Prof(sin, pname, o_ce, age, sex, specialty, dept did...

    Intro to database systems question: Question2 (20 points, 5 points each) Consider the following relational schema as part of a university database Prof(sin, pname, o_ce, age, sex, specialty, dept did) Dept(did, dname, budget, num majors, chair sin) Assume the following queries are the most common queries in the workload for this university and they are almost equivalent in frequency and importance Assume that both B+ trees and hashed indexes are supported by the DBMS and that both single and multiple-attribute...

  • Project Database Description After the requirement collection and analysis phase the software project of a database...

    Project Database Description After the requirement collection and analysis phase the software project of a database application about a company is described as follows: The company is organized into departments. Each department has an unique name, an unique number, and a particular employee who manages the department. We keep track of the start date when the employee began managing the dept. A dept may have multiple locations(cities). A dept controls a number of projects, each of which has a unique...

  • 1) A university database contains information about professors (identified by emp_id) and courses (identified by course_id)....

    1) A university database contains information about professors (identified by emp_id) and courses (identified by course_id). Professors teach courses. Each of the following situations concerns the Teaches relationship set. For each situation, draw an ER diagram that describes it (assuming no further constraints hold). a) Professors can teach the same course in several semesters, and each offering must be recorded. b) Professors can teach the same course in several semesters, and only the most recent such offering needs to be...

  • Question 1: University Database Consider the following set of requirements for a UNIVERSITY database that is...

    Question 1: University Database Consider the following set of requirements for a UNIVERSITY database that is used to keep track of students' transcripts. The university keeps track of each student's name, student number, social security number current address and phone, permanent address and phone, birth date, sex, class (freshman, sophomore,., graduate), major department, minor department (if any), and degree program (B.A., B.S.,..., Ph.D.). Some user applications need to refer to the city, state, and zip of the student's permanent address,...

  • database management system

    Design a “good” entity-relationship diagramthat describes the following objects in an university application:students, instructors, professors, and courses.Students aresubdivided into graduate and undergraduate students. Students takea course in a particular semester and receive a grade for theirperformance. Sometimesstudents take the same course again in adifferent semester. There are no limits on how many courses astudent can take, and on how many students completed aparticularcourse. Each graduate student has exactly one advisor, who must bea professor, whereas each professor is allowed to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT