Project Descriptions: You are asked to design a database for a university that s
ID: 3919096 • Letter: P
Question
Project Descriptions: You are asked to design a database for a university that satisfies the following require- ments: 1. The database keeps information of each professor, including the social security num ber, name, address, telephone number, sex, title, salary, and college degrees. The address includes street address, city, state, and zip code. The telephone number includes the area code and 7 digit number 2. Each department has a unique number, name, telephone, office location, and a chair- person who is a professor 3. Each course has a unique number, title, textbook, units. Each course also has a set of prerequisite courses. Each course is offered by a department 4. Each course may have several sections. Each section has a section number that is unique within the course, a classroom, meeting days, a beginning time, an ending time a number of seats. Each section is taught by a professor 5. The database keeps student records, including the campus wide ID, name, address and telephone number. Each student majors in one department and may minor in sev eral departments. The name includes first name and last name 6. The database keeps enrollment records. Each record has a student, a course section and a grade Design your database and create at least the following numbers of records 8 students 2 departments 3 professors 4 courses 6 sections 20 enrollment records You should provide interfaces for the following individuals: For the professors: Given the social security number of a professor, list the titles, classrooms, meeting days and time of his/her classes b. Given a course number and a section number, count how many students get each distinct grade, ie. .A'·'A-,, .B+"·?'·'B-', etc For the students: a. Given a course number list the sections of the course, including the classrooms. the meeting days and time, and the number of students enrolled in each section b. Given the campus wide ID of a student, list all courses the student took and the gradesExplanation / Answer
Database Design
1. PROFESSOR TABLE
Attribute Name
Data Type
Description
SSN
Integer
Primary key
Name
Varchar
Street_address
Varchar
City
Varchar
State
Varchar
Zip
Integer
Ph_area_code
Integer
Ph_no
Integer
Sex
Varchar
Title
Varchar
Salary
Integer
College_degrees
Varchar
2. DEPARTMENT TABLE
Attribute Name
Data Type
Description
Department_ID
Integer
Primary key
Name
Varchar
Ph_no
Integer
Office_location
Varchar
Chair_person_ID
Varchar
Foreign key
3. COURSE TABLE
Attribute Name
Data Type
Description
Course_ID
Integer
Primary key
Title
Varchar
Textbook
Varchar
Units
Varchar
Department_name
Varchar
Foreign key
4. SECTION TABLE
Attribute Name
Data Type
Description
Section_ID
Integer
Primary key
Course_ID
Integer
Primary key
Classroom
Varchar
Meeting_days
Date
Beginning_time
Integer
Ending_time
Integer
Number_of_seats
Integer
Professor_ID
Integer
Foreign key
5. STUDENT TABLE
Attribute Name
Data Type
Description
Student_ID
Integer
Primary key
First_name
Varchar
Last_name
Varchar
Address
Varchar
Ph_no
Integer
Major_department_ID
Integer
Foreign key
6. ENROLLMENT TABLE
Attribute Name
Data Type
Description
Student_ID
Integer
Primary key
Course_ID
Integer
Foreign key
Grade
Varchar
********************END*****************PLS GIVE ME GOOD RATING*****************
Attribute Name
Data Type
Description
SSN
Integer
Primary key
Name
Varchar
Street_address
Varchar
City
Varchar
State
Varchar
Zip
Integer
Ph_area_code
Integer
Ph_no
Integer
Sex
Varchar
Title
Varchar
Salary
Integer
College_degrees
Varchar
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.