Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A local community college has requested help building a class registration datab

ID: 3890545 • Letter: A

Question

A local community college has requested help building a class registration database as it moves class registration towards an online system. The system must keep track of students, courses, professors, departments, and which students are enrolled in which courses. The specific database requirements are as follows: All students can enroll in several courses and each course must have several students enrolled. One professor teaches each course but a professor can teach more than one course. Each professor belongs to a department. Additional information to be kept in the database: For each student: First name, last name, e-mail address, phone number, address For each course: Course number, section, name, and description For each professor: First name, last name, title (assistant, associate, adjunct, instructor, ets) For each department: Department name

Explanation / Answer

CREATE TABLE Student (

FirstName varchar(50) NOT NULL,

LastName varchar(50) NOT NULL,

Email varchar(75) ,

PhoneNumber varchar(20) NOT NULL,

Address varchar(250) NOT NULL,

CourseNumber int NOT NULL,

    PRIMARY KEY (FirstName,LastName),
    FOREIGN KEY (CourseNumber) REFERENCES Course(CourseNumber)
);

CREATE TABLE Course (

CourseNumber int NOT NULL,

Section int NOT NULL,

Name varchar(50) NOT NULL,

Description varchar(250),

  PRIMARY KEY (CourseNumber),
  
);

CREATE TABLE Professor (

FirstName varchar(50) NOT NULL,

LastName varchar(50) NOT NULL,

Title varchar(20) NOT NULL,
DepartmentName varchar(100) NOT NULL,

CourseNumber int NOT NULL,
    PRIMARY KEY (FirstName,LastName),
    FOREIGN KEY (DepartmentName) REFERENCES Department(DepartmentName)

  FOREIGN KEY (CourseNumber) REFERENCES Course(CourseNumber)
);

CREATE TABLE Department (
DepartmentName varchar(100) NOT NULL,
    PRIMARY KEY (DepartmentName)
  
);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote