Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
66 views20 pages

Finalpaper

The document describes the Leavey School of Business's Peer Advising program at Santa Clara University. It provides an overview of the program and the roles of peer advisors. It then describes the current inefficient process of recording meeting details in an online system and transferring it to a separate database. The document proposes developing a new integrated database to more efficiently store information, relationships, and meeting details in order to better analyze patterns and improve the program.

Uploaded by

api-350015739
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views20 pages

Finalpaper

The document describes the Leavey School of Business's Peer Advising program at Santa Clara University. It provides an overview of the program and the roles of peer advisors. It then describes the current inefficient process of recording meeting details in an online system and transferring it to a separate database. The document proposes developing a new integrated database to more efficiently store information, relationships, and meeting details in order to better analyze patterns and improve the program.

Uploaded by

api-350015739
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

LSB Peer Advising

Database
OMIS 105: 2:00PM-3:40PM
November 29th, 2016

Keaton Lee
Prianka Singh
Organization Description
Santa Clara Universitys Leavey School of Business offers a Peer Advising Program that develops a group
of students to be trained and knowledgeable about LSB requirements and advising resources. Each
first-year student is paired with an experienced business student at Santa Clara to provide guidance and
support. Peer advisors provide assistance on the following topics:
Campus life at Santa Clara University
eCampus - the online student record system
Course selection and scheduling
Locating and appropriate information in the University Bulletin and website
Resources and tools for course planning
Referral to faculty with relevant academic and/or career information
Campus resources available to support academic, personal and career development
Getting involved in student life
General support and encouragement
From a back-end perspective, Peer Advisors are trained and instructed by the Director of Academic Advising
and Support Services for the Undergraduate Business Programs Office, Connie Rice. As Peer Advisors
meet with their advisees, Connie maintains records of all the meetings through an online system called
Symplicity. Students create individual entries for each meeting, including general information about the
meeting and the advice that the advisors gave. Each week, a Program Assistant working under Connie pulls
a report of the Symplicity entries, manually cleans the data, and copies it into a database in Microsoft
Database. The Program Assistant also maintains close communication with the Advisors to find and input
missing data entries, as there are no restrictive controls to ensure fields are not left blank. This process is
very redundant and inefficient, and pulls from valuable time that can be used elsewhere in the program.

Database Description
We have developed an entirely new database for all of this information to increase the efficiency and
accuracy of the data entries, but also to be able to help find valuable relationships in the data to improve the
program.

As Peer Advisors, we both have inside knowledge of the relationships and business rules that govern the
business schools Peer Advising program. Taking a more technical perspective, all students at SCU are in
the database. Peer Advisors are assigned a group of freshman to advise over the full academic year. Each
student is assigned a faculty advisor, and sometimes multiple faculty advisors be assigned across multiple
groups. To meet with a Peer Advisor, a student can schedule an appointment ahead of time, or they can
meet with them without an appointment. This can be in the form of a phone call, text, in person, or over
social media. Meetings are either about course scheduling or general advising. If a meeting is for course
scheduling, the peer advisor creates a schedule for a respective quarter, which contains classes for the
student to take. When a peer advisor holds a general advising meeting, it can be about a range of topics
such as Annual Academic Advising.

Our database stores only relevant information regarding the Peer Advising process while outlining the
relationships between the various entities within the Peer Advising office. Additionally it will help the Peer
Advisors limit the repetition of data in their current system. This database will also allow Connie to better
improve the Peer Advising Program by understanding what areas students would like peer advisors to put
more effort in. The system in place right now has copies of their information stored in various places, leading
to a vastly inefficient process filled with repetitive data and various entry errors. By utilizing this data, we will
be able to develop our forecasting techniques while optimizing efficiencies within the office.
ER Diagram
Data Dictionary

STUDENT

Name Data Type Constraints Key Description Example Value

Student ID bigint >0 PK Unique identifier for a 1234567


student

Student Name nvarchar(50) Name of Student John Smith

Student GPA real >0 Average value of students 3.0


accumulated grades

Student RLC nvarchar(20) Students location of Cyphi


residence

Student numeric(4) Students expected year of 2020


Graduation graduation
Year

Student Major nvarchar(50) Major(s) that the student OMIS


has declared at SCU

Student Email nvarchar(50) Email of student [email protected]


u

Student Phone char(10) Phone number of student 1234567890


Number

Student nvarchar(50) Address of student 853 Benton St


Address

Student City nvarchar(30) City of student Santa Clara

Student State char(2) State abbreviation of CA


student

Student Zip numeric(5) Zip code of student 95050


Code

Group ID bigint >0 FK Unique identifier for a 1234567


group
APPOINTMENT

Name Data Type Constraints Key Description Example Value

Appointment bigint >0 PK Unique identifier for an 1234567


ID appointment

Appointment datetime Date and Time of 12/1/2016


Date scheduled appointment 13:00:00

Appointment nvarchar(80) Short description of Mandatory Fall


Reason reason for the Advising
appointment Meeting

Peer Advisor bigint >0 FK Unique identifier for a 1234567


ID Peer Advisor

MEETING

Name Data Type Constraints Key Description Example Value

Meeting ID bigint >0 PK Unique identifier for a 1234567


meeting

Meeting Date datetime Date and Time of meeting 12/1/2016


13:00:00

Meeting Length bigint >0 Length of meeting in 30


minutes

Meeting Notes nvarchar(max) Notes on topics covered Student wanted


during meeting to know the
procedures for
dropping a class
and adding a
different one. I
told him to add
the class on
ecampus if it
was not full, and
if it was full, to
sit in on the
class he wants
and speak to
the professor.

Meeting Type char(1) Type of meeting held C

Peer Advisor bigint >0 FK Unique identifier for a 1234567


ID Peer Advisor

Appointment ID bigint >0 FK Unique identifier for an 1234567


appointment
FACULTY
ADVISOR

Name Data Type Constraints Key Description Example Value

Faculty Advisor bigint >0 PK Unique identifier for a 1234567


ID faculty member

Faculty Name nvarchar(50) Name of Faculty Advisor Newt


Scamander

Faculty nvarchar(50) Name of faculty advisor Marketing


Department for group

Faculty Email nvarchar(50) Email of faculty member nscamander@


scu.edu

ADVISEE
GROUP

Name Data Type Constraints Key Description Example Value

Group ID bigint >0 PK Unique identifier for an 12345


advisee group

Group Name nvarchar(50) Name of Group - Used for Purple


Social Media, etc.

Peer Advisor bigint >0 FK Unique identifier for a peer 1234567


ID advisor

PEER
ADVISOR

Name Data Type Constraints Key Description Example Value

Peer Advisor bigint >0 PK Unique identifier for a peer 1234567


ID advisor

Peer Advisor nvarchar(50) Name of Peer Advisor Albus


Name Dumbledore

Peer Advisor nvarchar(50) Major(s) that the peer Management


Major advisor has declared at
SCU

Peer Advisor nvarchar(50) Email of peer advisor adumbledore


Email @scu.edu

Peer Advisor char(10) Phone number of peer 1234567890


Phone Number advisor

Peer Advisor numeric(4) Peer Advisors expected 2018


Graduation year of graduation
Year

Peer Advisor nvarchar(20) Peer Advisors area of Accounting


Specialization expertise

Peer Advisor nvarchar(50) Address of peer advisor 853 Benton St


Address

Peer Advisor nvarchar(30) City of peer advisor Santa Clara


City

Peer Advisor char(2) State abbreviation of peer CA


State advisor

Peer Advisor numeric(5) Zip code of peer advisor 95050


Zip Code

Group ID bigint >0 FK Unique identifier for a 1234567


group

MEETING_
COURSE
SCHEDULING

Name Data Type Constraints Key Description Example Value

C Meeting ID bigint >0 PK, Unique identifier for a 1234567


FK course scheduling
meeting

Scheduling nvarchar(6) Quarter that each course Winter


Quarter scheduling meeting was
planning for

Scheduling numeric(4) Year that each course 2017


Year scheduling meeting was
planning for

SCHEDULE

Name Data Type Constraints Key Description Example Value

Schedule ID bigint >0 PK Unique identifier for an 1234567


schedule

Schedule nvarchar(500) Notes on schedule ECON 1,


Notes created by peer advisor MATH 31,
OMIS 15,
TESP 4, ENGL
2A
Course bigint >0 FK Unique identifier for a 1234567
Scheduling ID course scheduling
meeting

Student ID bigint >0 PK Unique identifier for a 1234567


student

COURSE

Name Data Type Constraints Key Description Example Value

Course ID bigint >0 PK Unique identifier for an 1234567


course

Course Name nvarchar(8) Name of course listing MATH 31

Course Units numeric(1) Number of units in course 4

Course Days (nvarchar(3) Day that class is offered MWF

Course Start time(0) Time that class is offered 10:30


Time

Course End time(0) Time that class ends 11:35


Time

MEETING_
GENERAL
ADVISING

Name Data Type Constraints Key Description Example Value

G Meeting ID bigint >0 PK Unique identifier for an 1234567


general advising meeting

Advising Topic nvarchar(80) Topic discussed during Question about


general advising meeting Academic
Regulation/Poli
cy

Advising nvarchar(30) Medium used to Email


Medium communicated between
advisor and student
REFERRAL

Name Data Type Constraints Key Description Example Value

Referral ID bigint >0 PK Unique identifier for a 1234567


referral

Referral nvarchar(100) Reason student is being Change majors


Reason referred to resource

G Meeting ID bigint >0 FK Unique identifier for a 1234567


general advising meeting

Resource ID bigint >0 FK Unique identifier for a 1234567


resource

Student ID bigint >0 FK Unique identifier for a 1234567


student

REFERRAL
RESOURCE

Name Data Type Constraints Key Description Example Value

Resource ID bigint >0 PK Unique identifier for a 1234567


resource

Resource nvarchar(50) Name of campus resource Center for


Name Student
Involvement

Resource char(10) Phone number for 408-554-4745


Phone Number resource

Resource nvarchar(50) Email address for [email protected]


Email resource

QUARTER

Name Data Type Constraints Key Description Example Value

Quarter ID bigint >0 PK Unique identifier for a 1234567


quarter

Unit Total numeric(2) >0 Amount of units taken in 16


one quarter

C_Meeting ID bigint >0 FK Unique identifier for a 1234567


course scheduling
meeting
STUDENT_
APPOINTMENT

Name Data Type Constraints Key Description Example Value

Student_Appoi bigint >0 PK Unique identifier for a 1234567


ntment ID students appointment

Student ID bigint >0 FK Unique identifier for a 1234567


student

Appointment bigint >0 FK Unique identifier for an 1234567


ID appointment

STUDENT_
MEETING

Name Data Type Constraints Key Description Example Value

Student_Meeti bigint >0 PK Unique identifier for a 1234567


ng ID students meeting

Student ID bigint >0 FK Unique identifier for a 1234567


student

Meeting ID bigint >0 FK Unique identifier for 1234567


meeting

STUDENT_
QUARTER

Name Data Type Constraints Key Description Example Value

Student_Quart bigint >0 PK Unique identifier for a 1234567


er ID students quarter

Student ID bigint >0 FK Unique identifier for a 1234567


student

Quarter ID bigint >0 FK Unique identifier for a 1234567


quarter

QUARTER_
COURSE

Name Data Type Constraints Key Description Example Value

Quarter_Cours bigint >0 PK Unique identifier for a 1234567


e ID courses quarter

Course ID bigint >0 FK Unique identifier for a 1234567


course
Quarter ID bigint >0 FK Unique identifier for a 1234567
quarter

COURSE_
SCHEDULE

Name Data Type Constraints Key Description Example Value

Course_Sched bigint >0 PK Unique identifier for a 1234567


ule ID schedules course

Course ID bigint >0 FK Unique identifier for a 1234567


course

Schedule ID bigint >0 FK Unique identifier for a 1234567


schedule

FACULTY_
ADVISOR_
GROUP

Name Data Type Constraints Key Description Example Value

Faculty_Adviso bigint >0 PK Unique identifier for a 1234567


r_Group_ID Groups faculty advisor

Faculty Advisor bigint >0 FK Unique identifier for a 1234567


ID faculty advisor

Group ID bigint >0 FK Unique identifier for a 1234567


group
Logical Schema
Create Table Statements
Student
CREATE TABLE Student_T
(StudentID bigint NOT NULL
CHECK (StudentID>0),
StudentName nvarchar(50) NOT NULL,
StudentGPA REAL NULL
CHECK (StudentGPA>0),
StudentRLC nvarchar(20) NULL,
StudentMajor nvarchar(50) NULL,
StudentEmail nvarchar(50) NOT NULL,
StudentPhoneNumber char(10) NOT NULL,
StudentAddress nvarchar(50) NOT NULL,
StudentCity nvarchar(30) NOT NULL,
StudentState nvarchar(2) NOT NULL,
StudentZipCode nvarchar(5) NOT NULL,
StudentGraduationYear numeric(4) NOT NULL,
GroupID bigint NOT NULL
CHECK (GroupID>0),
CONSTRAINT Student_PK PRIMARY KEY(StudentID),
CONSTRAINT Student_FK FOREIGN KEY(GroupID) REFERENCES
AdviseeGroup_T(GroupID));

Appointment
CREATE TABLE Appointment_T
(AppointmentID bigint NOT NULL
CHECK (AppointmentID>0),
AppointmentDateTime datetime NOT NULL,
AppointmentReason nvarchar(80) NOT NULL,
PeerAdvisorID bigint NOT NULL
CHECK (PeerAdvisorID>0),
CONSTRAINT Appointment_PK PRIMARY KEY (AppointmentID),
CONSTRAINT Appointment_FK FOREIGN KEY (PeerAdvisorID)
REFERENCES PeerAdvisor_T(PeerAdvisorID));

Meeting
CREATE TABLE Meeting_T
(MeetingID bigint NOT NULL
CHECK (MeetingID>0),
MeetingDate datetime NOT NULL,
MeetingLength bigint NOT NULL
CHECK (MeetingLength>0),
MeetingNotes nvarchar(500) NULL,
MeetingType char(1) NOT NULL,
PeerAdvisorID bigint NOT NULL
CHECK (PeerAdvisorID>0),
AppointmentID bigint NOT NULL
CHECK (AppointmentID>0),
CONSTRAINT Meeting_PK PRIMARY KEY (MeetingID),
CONSTRAINT Meeting_FK1 FOREIGN KEY(PeerAdvisorID) REFERENCES
PeerAdvisor_T(PeerAdvisorID),
CONSTRAINT Meeting_FK2 FOREIGN KEY(AppointmentID) REFERENCES
Appointment_T(AppointmentID));

Faculty Advisor
CREATE TABLE FacultyAdvisor_T
(FacultyAdvisorID bigint NOT NULL
CHECK (FacultyAdvisorID>0),
FacultyName nvarchar(50) NOT NULL,
FacultyDepartment nvarchar(50) NOT NULL,
FacultyEmail nvarchar(50) NOT NULL,
CONSTRAINT FacultyAdvisor_PK PRIMARY KEY (FacultyAdvisorID));

Advisee Group
CREATE TABLE AdviseeGroup_T
(GroupID bigint NOT NULL
CHECK (GroupID>0),
GroupName nvarchar(50) NOT NULL,
PeerAdvisorID bigint NOT NULL
CHECK (PeerAdvisorID>0),
CONSTRAINT AdviseeGroup_PK PRIMARY KEY (GroupID),
CONSTRAINT AdviseeGroup_FK FOREIGN KEY (PeerAdvisorID)
REFERENCES PeerAdvisor_T(PeerAdvisorID));

Peer Advisor
CREATE TABLE PeerAdvisor_T
(PeerAdvisorID bigint NOT NULL
CHECK (PeerAdvisorID>0),
PeerAdvisorName nvarchar(50) NOT NULL,
PeerAdvisorMajor nvarchar(50) NULL,
PeerAdvisorEmail nvarchar(50) NOT NULL,
PeerAdvisorPhoneNumber char(10) NOT NULL,
PeerAdvisorGraduationYear numeric(4) NOT NULL,
PeerAdvisorSpecialization nvarchar(20) NULL,
PeerAdvisorAddress nvarchar(50) NOT NULL,
PeerAdvisorCity nvarchar(30) NOT NULL,
PeerAdvisorState char(2) NOT NULL,
PeerAdvisorZipCode numeric(5) NOT NULL,
GroupID bigint NOT NULL,
CONSTRAINT PeerAdvisor_PK PRIMARY KEY (PeerAdvisorID),
CONSTRAINT PeerAdvisor_FK FOREIGN KEY (GroupID) REFERENCES
AdviseeGroup_T(GroupID));

Meeting Course Scheduling


CREATE TABLE Meeting_CourseScheduling_T
(C_MeetingID bigint NOT NULL
CHECK (C_MeetingID>0),
SchedulingQuarter nvarchar(6) NOT NULL,
SchedulingYear numeric(4) NOT NULL,
CONSTRAINT Meeting_CourseScheduling_PK PRIMARY KEY (C_MeetingID));

Schedule
CREATE TABLE Schedule_T
(ScheduleID bigint NOT NULL
CHECK (ScheduleID>0),
ScheduleNotes nvarchar(500) NULL,
C_MeetingID bigint NOT NULL
CHECK (C_MeetingID>0),
StudentID bigint NOT NULL

CHECK (StudentID>0),
CONSTRAINT Schedule_PK PRIMARY KEY (ScheduleID),
CONSTRAINT Schedule_FK1 FOREIGN KEY (C_MeetingID)
REFERENCES Meeting_CourseScheduling_T(C_MeetingID),
CONSTRAINT Schedule_FK2 FOREIGN KEY (StudentID) REFERENCES
Student_T(StudentID));

Course
CREATE TABLE Course_T
(CourseID bigint NOT NULL
CHECK (CourseID>0),
CourseName nvarchar(8) NOT NULL,
CourseUnits numeric(1) NOT NULL,
CourseDay nvarchar(3) NOT NULL,
CourseStartTime time(0) NOT NULL,
CourseEndTime time(0) NOT NULL,
CONSTRAINT Course_PK PRIMARY KEY (CourseID));

Meeting General Advising


CREATE TABLE Meeting_GeneralAdvising_T
(G_MeetingID bigint NOT NULL
CHECK (G_MeetingID>0),
AdvisingTopic nvarchar(80) NOT NULL,
AdvisingMedium nvarchar(30) NOT NULL,
CONSTRAINT Meeting_GeneralAdvising_PK PRIMARY KEY (G_MeetingID));

Referral
CREATE TABLE Referral_T
(ReferralID bigint NOT NULL
CHECK (ReferralID>0),
ReferralReason nvarchar(100) NOT NULL,
G_MeetingID bigint NOT NULL
CHECK (G_MeetingID>0),
ResourceID bigint NOT NULL
CHECK (ResourceID>0),
StudentID bigint NOT NULL
CHECK (StudentID>0),
CONSTRAINT Referral_PK PRIMARY KEY (ReferralID),
CONSTRAINT Referral_FK1 FOREIGN KEY (G_MeetingID)
REFERENCES Meeting_GeneralAdvising_T(G_MeetingID),
CONSTRAINT Referral_FK2 FOREIGN KEY (ResourceID) REFERENCES
Resource_T(ResourceID),
CONSTRAINT Referral_FK3 FOREIGN KEY (StudentID) REFERENCES
Student_T(StudentID));

Referral Resource
CREATE TABLE ReferralResource_T
(ResourceID bigint NOT NULL
CHECK (ResourceID>0),
ResourceName nvarchar(50) NOT NULL,
ResourcePhoneNumber char(10) NOT NULL,
ResourceEmail nvarchar(50) NOT NULL,
CONSTRAINT ReferralResource_PK PRIMARY KEY (ResourceID));

Quarter
CREATE TABLE Quarter_T
(QuarterID bigint NOT NULL
CHECK (QuarterID>0),
UnitTotal numeric(2) NOT NULL
CHECK (UnitTotal>0),
C_MeetingID bigint NOT NULL
CHECK (C_MeetingID>0),
CONSTRAINT Quarter_PK PRIMARY KEY (QuarterID),
CONSTRAINT Quarter_FK FOREIGN KEY (C_MeetingID)
REFERENCES Meeting_CourseScheduling_T(C_MeetingID));

Student Appointment
CREATE TABLE Student_Appointment_T
(Student_AppointmentID bigint NOT NULL
CHECK (Student_AppointmentID>0),
StudentID bigint NOT NULL
CHECK (StudentID>0),
AppointmentID bigint NULL
CHECK (AppointmentID>0),
CONSTRAINT Student_Appointment_PK PRIMARY KEY (Student_AppointmentID),
CONSTRAINT Student_Appointment_FK1 FOREIGN KEY (StudentID) REFERENCES
Student_T(StudentID),
CONSTRAINT Student_Appointment_FK2 FOREIGN KEY (AppointmentID)
REFERENCES Appointment_T(AppointmentID));
Student Meeting
CREATE TABLE Student_Meeting_T
(Student_MeetingID bigint NOT NULL
CHECK (Student_MeetingID>0),
StudentID bigint NOT NULL
CHECK (StudentID>0),
MeetingID bigint NULL
CHECK (MeetingID>0),
CONSTRAINT Student_Meeting_PK PRIMARY KEY (Student_MeetingID),
CONSTRAINT Student_Meeting_FK1 FOREIGN KEY (StudentID) REFERENCES
Student_T(StudentID),
CONSTRAINT Student_Meeting_FK2 FOREIGN KEY (MeetingID)
REFERENCES Meeting_T(MeetingID));

Student Quarter
CREATE TABLE Student_Quarter_T
(Student_QuarterID bigint NOT NULL
CHECK (Student_QuarterID>0),
StudentID bigint NULL
CHECK (StudentID>0),
QuarterID bigint NULL
CHECK (QuarterID>0),
CONSTRAINT Student_Quarter_PK PRIMARY KEY (Student_QuarterID),
CONSTRAINT Student_Quarter_FK1 FOREIGN KEY (StudentID) REFERENCES
Student_T(StudentID),
CONSTRAINT Student_Quarter_FK2 FOREIGN KEY (QuarterID) REFERENCES
Quarter_T(QuarterID));

Quarter Course
CREATE TABLE Quarter_Course_T
(Quarter_CourseID bigint NOT NULL
CHECK (Quarter_CourseID>0),
QuarterID bigint NOT NULL
CHECK (QuarterID>0),
CourseID bigint NULL
CHECK (CourseID>0),
CONSTRAINT Quarter_Course_PK PRIMARY KEY (Quarter_CourseID),
CONSTRAINT Quarter_Course_FK1 FOREIGN KEY (QuarterID) REFERENCES
Quarter_T(QuarterID),
CONSTRAINT Quarter_Course_FK2 FOREIGN KEY (CourseID) REFERENCES
Course_T(CourseID));

Course Schedule
CREATE TABLE Course_Schedule_T
(Course_ScheduleID bigint NOT NULL
CHECK (Course_ScheduleID>0),
CourseID bigint NOT NULL
CHECK (CourseID>0),
ScheduleID bigint NOT NULL
CHECK (ScheduleID>0),
CONSTRAINT Course_Schedule_PK PRIMARY KEY (Course_ScheduleID),
CONSTRAINT Course_Schedule_FK1 FOREIGN KEY (CourseID) REFERENCES
Course_T(CourseID),
CONSTRAINT Course_Schedule_FK2 FOREIGN KEY (ScheduleID) REFERENCES
Schedule_T(ScheduleID));

Faculty Advisor Group


CREATE TABLE Faculty_Advisor_Group_T
(Faculty_Advisor_GroupID bigint NOT NULL
CHECK (Faculty_Advisor_GroupID>0),
FacultyAdvisorID bigint NOT NULL
CHECK (FacultyAdvisorID>0),
GroupID bigint NOT NULL
CHECK (GroupID>0),
CONSTRAINT Faculty_Advisor_Group_PK PRIMARY KEY (Faculty_Advisor_GroupID),
CONSTRAINT Faculty_Advisor_Group_FK1 FOREIGN KEY (FacultyAdvisorID)
REFERENCES FacultyAdvisor_T(FacultyAdvisorID),
CONSTRAINT Faculty_Advisor_Group_FK2 FOREIGN KEY (GroupID)
REFERENCES AdviseeGroup_T(GroupID));

Views
1. Peer Advising Administration View
The first view that we created was for the administration of the peer advising program. This view will display
each peer advisor, the types of meeting they have participated in, the average length of each of these
meetings, and the total number of meetings for each type. This is important for the administration because
they need to see how often and for long long peer advisors are meeting with their students. If they are
meeting with students too much, they may want to hire more peer advisors next year. Similarly, if they are
meeting too little, the office may hire fewer advisors.

CREATE VIEW PeerAdvisingAdmin as


SELECT PeerAdvisor_T.PeerAdvisorName, Meeting_T.MeetingType, avg(Meeting_T.MeetingLength) as
AverageMeetingLength,
count(Meeting_T.MeetingID) as NumberOfMeetings
FROM PeerAdvisor_T, Meeting_T
WHERE PeerAdvisor_T.PeerAdvisorID = Meeting_T.PeerAdvisorID
GROUP BY PeerAdvisor_T.PeerAdvisorName, Meeting_T.MeetingType;

2. Faculty Advisor View


We created this view for faculty advisors (Phoebe Buffay in this instance) within the business school. The
view allows the advisors to see which students have been placed within their group, their contact
information, as well as who the students peer advisor is and how to contact them. Additionally, the faculty
advisor will be able to see if the student has met with their peer advisor and what was discussed during the
meeting. This is beneficial to the business because advisees should be meeting with their peer advisor first
and only approaching their faculty advisor for questions regarding major discernment and career paths, so
as to not overwhelm them.
CREATE VIEW FacultyAdvisor as
SELECT student_T.StudentName, Adviseegroup_T.GroupName, student_T.StudentEmail,
peeradvisor_T.peeradvisorname, meeting_T.meetingtype, meeting_T.MeetingID, meeting_T.meetingnotes,
FacultyAdvisor_T.FacultyAdvisorName
FROM student_T, faculty_advisor_group_T, AdviseeGroup_T, peeradvisor_T, meeting_T,
FacultyAdvisor_T, Student_Meeting_T
WHERE Adviseegroup_T.groupid = student_t.groupid
AND peeradvisor_T.peeradvisorID = AdviseeGroup_T.peeradvisorID
AND meeting_T.PeeradvisorID = peeradvisor_T.peeradvisorID
AND student_T.groupid = faculty_advisor_group_T.groupID
AND faculty_advisor_group_T.facultyadvisorID = 2668283
AND FacultyAdvisor_T.FacultyAdvisorID = Faculty_Advisor_Group_T.FacultyAdvisorID
AND Student_T.StudentID = Student_Meeting_T.StudentID
AND Student_Meeting_T.MeetingID = Meeting_T.MeetingID

3. Peer Advisor View


In this view, a peer advisor (Prianka and Keaton) will be able to see which of their advisees are going to be
taking a C&I course in Winter 2017. Along with this information, these advisees email addresses will be
called. This view is important for peer advisors because they must send out a reminder email to sign up for
their C&I during the early C&I registration period. Many students forget about this, so peer advisors must
keep track of which students need to be reminded.

CREATE VIEW PeerAdvisor as


SELECT student_T.StudentName, student_T.StudentEmail, PeerAdvisor_T.PeerAdvisorName
FROM student_T, course_T, quarter_course_T, student_quarter_T, Peeradvisor_T
WHERE course_T.courseID = quarter_course_T.courseID
AND quarter_course_T.quarterID = student_quarter_T.quarterID
AND student_quarter_T.studentID = student_T.studentID
AND Course_T.CourseName like ('%11A')
AND Student_T.GroupID = PeerAdvisor_T.GroupID
AND (Peeradvisor_T.PeerAdvisorID = 1428570
OR Peeradvisor_T.PeerAdvisorID = 1355553);

4a. Business School Administration View


For the LSB administration, we created a view that displays the top 10 most common classes within the
schedules that peer advisors are creating with their advisees. The view will show the course name, and a
count of the number of occurrences within schedules inside our database. This is valuable information for
the Business School Administration because it shows which classes are high in demand, especially for
incoming freshman classes. By selecting the top 10, it gives the administration a holistic view of students
schedules so they can interact closely with other departments in Arts and Sciences to ensure the right
classes are being offered for students to graduate on time.

CREATE VIEW BusnSchoolAdmin as


SELECT top 10 course_T.CourseName, count(Quarter_Course_T.CourseID) as NumberOfOccurances
FROM Quarter_Course_T, Course_T
WHERE Quarter_Course_T.CourseID = Course_T.CourseID
GROUP BY Quarter_Course_T.CourseID, Course_T.CourseName
ORDER BY count(*) desc;

5. Student View
The last view that we created was intended to be used by students. Within this view, students are able to
see which courses have been recommended to them by their peer advisor and the day and time of these
courses. Additionally, the quarter and year of the prescribed schedule can be seen. In this example, our
student John Locke is viewing his schedule for Winter 2017. This view is extremely important for students
as they will be using these course plan while registering for their classes.

CREATE VIEW StudentView as


SELECT Student_T.StudentName,Course_T.CourseName, Course_T.CourseDay,
Course_T.CourseStartTime,
Course_T.CourseEndTime, Meeting_CourseScheduling_T.SchedulingQuarter,
Meeting_CourseScheduling_T.SchedulingYear
FROM Course_T, Quarter_T, Meeting_CourseScheduling_T, Quarter_Course_T, Student_T,
Student_Quarter_T, Schedule_T, Course_Schedule_T
WHERE course_T.CourseID = Quarter_Course_T.CourseID
AND Quarter_Course_T.QuarterID = Quarter_Course_T.QuarterID
AND Quarter_T.QuarterID = Student_Quarter_T.QuarterID
ANDStudent_Quarter_T.StudentID = Student_T.StudentID
AND Meeting_CourseScheduling_T.SchedulingQuarter like ('Winter')
AND Meeting_CourseScheduling_T.SchedulingYear = 2017
AND Student_T.StudentID = 1186180
AND Course_T.CourseID = Course_Schedule_T.CourseID
AND Course_Schedule_T.ScheduleID = Schedule_T.ScheduleID
AND Meeting_CourseScheduling_T.C_MeetingID = Schedule_T.C_MeetingID
ANDMeeting_CourseScheduling_T.C_MeetingID = Quarter_T.C_MeetingID
GROUP BY Student_T.StudentName,Course_T.CourseName, Course_T.CourseDay,
Course_T.CourseStartTime, Course_T.CourseEndTime,
Meeting_CourseScheduling_T.SchedulingQuarter, Meeting_CourseScheduling_T.SchedulingYear;

You might also like