This document describes a student resource planner database created for the Center of Health, Information and Decision System research department. The database tracks students, courses, faculty, departments, projects and payroll information. It includes conceptual, logical and physical database designs along with sample queries and use cases. Functions like adding a new student or updating faculty information are demonstrated through screenshots.
1. Student Resource Planner
Keyur Shah
Lyon Pinto
Nikita Ahuja
Tejal Kanase
D
December 8, 2014 11 am
Client: Center of Health, Information and Decision
System (CHIDS) in Robert H Smith School of Business
2. Mission Statement & Objectives
➢ Background
Database development for a functional research department in Robert H. Smith School of
Business, named, Center of Health, Information and Decision System (CHIDS)
➢ Mission Statement
Student Resource Planner helps the research department faculty to assign students to ongoing
project(s) according to their coursework and analyze project budget status using payroll and
sponsor information
➢ Mission Objectives
1. Each student is enrolled for course(s) taught by a faculty member
2. Students are supervised by senior students
3. Each Research Student is associated with single research department
4. Students have a unique payroll ID and associated projects contain payroll information
5. Students, Faculty, Research Department and Projects are a part of project team
6. Project have project sponsor(s)
5. Physical Database Design
★ Course Enrolled - relationship between Student, Course and Faculty
Create Query:
create table CourseEnrolled (StudentId Varchar (10) not null,
courseId Varchar (10) not null,
FacId Varchar (10) not null,
C_Year numeric (4,0),
C_Semester varchar (10),
CONSTRAINT pk_CourseEnrolled_StuCourseFac PRIMARY KEY (StudentId, courseId, FacId),
CONSTRAINT fk_CourseEnrolled_StudentId foreign KEY (StudentId) references Student(StudentId) on update
CASCADE on DELETE CASCADE,
CONSTRAINT fk_CourseEnrolled_CourseId foreign KEY (courseId) references Course(courseId) on update CASCADE
on DELETE CASCADE,
CONSTRAINT fk_CourseEnrolled_FacId foreign KEY (FacId) references Faculty(FacId) on update CASCADE on
DELETE CASCADE);
6. Physical Database Design
★ Payroll Details View: Student, Project, Payroll
Create Query (View):
CREATE VIEW [Payroll Details] AS
SELECT S.StudentId, S.StuFirstName, S.StuLastName, Y.projId, P.payPerHour as 'Hourly Rate’, P.noOfHoursWorked
as 'Number Of Hours Worked’
FROM Student S , Payroll P ,Project_Payroll Y
WHERE S.studentId=P.StudentId And P.payrollId=Y.payrollId ;
7. Use Case
★ Display project details of a particular department
select * from Project_SRP
where projId in
(select projId from ProjectTeam where departmentId='RD1');
9. ★ Add Functionality: Adding new Student to database using Frontend
Application
Newly added student is updated at
the bottom of the list
Adding new Student: S00080