0% found this document useful (0 votes)
298 views12 pages

Omis 105 Final Project

This database was designed and implemented for the Center for Food Innovation and Entrepreneurship (CFIE) at Santa Clara University to organize their relationships, research, and operations. The database tracks students, alumni, companies, staff, and CFIE's programs in education, research & initiatives, events, and immersive study trips. Entities include programs, education programs, research programs, immersive study trips, students, alumni, staff, and companies. The database aims to allow CFIE to work more efficiently and effectively conduct research.

Uploaded by

api-471148717
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)
298 views12 pages

Omis 105 Final Project

This database was designed and implemented for the Center for Food Innovation and Entrepreneurship (CFIE) at Santa Clara University to organize their relationships, research, and operations. The database tracks students, alumni, companies, staff, and CFIE's programs in education, research & initiatives, events, and immersive study trips. Entities include programs, education programs, research programs, immersive study trips, students, alumni, staff, and companies. The database aims to allow CFIE to work more efficiently and effectively conduct research.

Uploaded by

api-471148717
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/ 12

OMIS 105 Final Project

Center for Food Innovation and Entrepreneurship


Database Design & Implementation

Brandon Sage & Naomi Isom

Database Management Systems

Professor Mohammad Amin Morid

June 1st, 2019


1

I. Description

For the final project, our team developed a database for the Center for Food Innovation
and Entrepreneurship in the Leavey School of Business at Santa Clara University. This
department, commonly referred to as CFIE, was founded in 1973 and has a main purpose of
educating students on modern business practices related to food and agriculture. The CFIE has
successfully guided over 650 students into management positions in food and agribusiness firms
and government agencies around the world.

We have designed and implemented a database for CFIE that will foster conducive
research to enhance the departments understanding of food insecurity, food waste, food
innovation, and urban agriculture. This database will support the center’s operations by
organizing the departments relationships and past research in order to effectively continue to
conduct research in an efficient manner. By creating a centralized database management system
for the department, it will allow easier access to information for all of the employees. This will
provide the department with the opportunity to work more efficiently and allocate more time to
developing different aspects of the company.

CFIE provides programs for students, alumni, and companies. Each student has a student
ID, name, major, and phone number. Alumni are identified by alumni ID, name, the degree they
obtained at SCU, and the year they graduated. Each company has a company ID, name, and
industry they’re in. CFIE also has many staff members that have a staff ID, name, title, and
address.

The center is divided into four main programs: education, research & initiatives, events,
and immersive study trips. Programs are identified by program ID, name, and type of program.
Education is distinguished by enrichment programs. Students can be involved in many programs
related to their education in order to advance with their career. Enrichment programs are a part of
education made up of internship opportunities, a mentor program, and industry treks. Industry
treks delivers custom educational programs to companies. These programs can be for a single
day or a week and can be on campus or at the company site. Research & Initiatives​ ​are
distinguished by four topics: food and agriculture, food insecurity, food waste, and urban
agriculture. Santa Clara University has many different ways of finding and using research, as
well as initiatives it is involved in, for each part. CFIE also hosts immersive study trips that take
around 12 students and 1 or 2 faculty members to learn about business in a developing country.
2

II. Entity Relationship Diagram (ERD)


3

III. Relational Data Model (RDM)


4

IV. Data Dictionaries


PROGRAMS

Name Data Type Constraints Key Description Example Value

Program ID numeric(11) >0 PK Unique identifier for a 12345


program

Program Description varchar(max) Description of a Program Several programs designed to


integrate concepts learned with
issues and problems facing the
food industry

Program Type varchar(30) A type of Program Education

EDUCATION

Name Data Type Constraints Key Description Example Value

EProgram ID numeric(11) >0 PK, Unique identifier for a program under 12345
FK Education

Enrichment Program varchar(25) 3 types of programs that students and Internship


Type companies can participate in

RESEARCH & INITIATIVES

Name Data Type Constraints Key Description Example Value

RProgram ID numeric(11) >0 PK, Unique identifier for a topic under 12345
FK Research and Initiatives

Research Topic varchar(25) 4 types of topics to research and study Food and
Agriculture

IMMERSIVE STUDY

Name Data Type Constraints Key Description Example Value

IProgram ID numeric(11) >0 PK, FK Unique identifier for a trip taken 12345
under Immersive Study

Country varchar(25) Country the Immersive Study takes Rwanda


place in

Immersion Date date Start date of the Immersive Study 2019-13-09

STAFF

Name Data Type Constraints Key Description Example Value

Staff ID numeric(11) >0 PK Unique identifier for a staff member 12345

Staff Name varchar(25) Name of staff member Carol Smith

Staff Title varchar(30) Official title that the staff member Program Director
holds under the department

Staff Address varchar(30) Current home address of staff member 500 El Camino Real
5

Staff City varchar(20) Current city staff member lives in Santa Clara

Staff State char(2) >0 Current state staff member lives in CA

Staff Zip numeric(5) >0 Current zip code of staff member 95050

STUDENT

Name Data Type Constraints Key Description Example Value

Student ID numeric(11) >0 PK Unique identifier for a staff member 12345

Student Name varchar(30) Name of Student Carol Smith

Major varchar(50) Degree that the student is currently Management &


working toward obtaining Information Systems

Student Phone numeric(10) >0 Current phone number of student 8589876382


Number

ALUMNI

Name Data Type Constraints Key Description Example Value

Alumni ID numeric(11) >0 PK Unique identifier for Alumni 12345

Alumni Name varchar(30) Name of Alumni Carol Smith

Degree Obtained varchar(30) Degree that the alumni has received Management &
from Santa Clara University Information Systems

Graduation Year numeric(4) >0 Year that the Alumni Graduated 2016
from Santa Clara University

COMPANY

Name Data Type Constraints Key Description Example Value

Company ID numeric(11) >0 PK Unique identifier for a Company 12345

Company Name varchar(50) Name of Company Sweet Farm

Industry varchar(30) Industry that the company is in Agriculture

EDUCATIONAL PROGRAMS

Name Data Type Constraints Key Description Example Value

Company ID numeric(11) >0 PK, FK A Company taking a Program 12345


from Santa Clara University;
Unique identifier for a Company

EProgram ID numeric(11) >0 PK, FK Type of Educational Program a 12345


Company is taking; Unique
identifier for a Program

Duration char(1) >0 Length of Program in Days 7

Program Location varchar(30) Primary location that the Santa Clara


6

Program will be carried out University

ALUMNI EMPLOYER

Name Data Type Constraints Key Description Example Value

Alumni ID numeric(11) >0 PK, FK Alumni working at a company; 12345


Unique identifier for Alumni

Company ID numeric(11) >0 PK, FK Company that hired a Santa 12345


Clara University alumni;
Unique identifier for a
Company

STUDENT EDUCATIONAL PROGRAM INVOLVEMENT

Name Data Type Constraints Key Description Example Value

Student ID numeric(11) >0 PK, FK Student involved in an 12345


Education program; unique
identifier for a student

EProgram ID numeric(11) >0 PK, FK Education program associated 12345


with a student; unique
identifier for an Education
program

STAFF IMMERSION ATTENDANCE

Name Data Type Constraints Key Description Example Value

Staff ID numeric(11) >0 PK, FK Staff member involved in an 12345


Immersive Study trip; unique
identifier for a staff

IProgram ID numeric(11) >0 PK, FK Immersive Study trip 12345


associated with a staff
member; unique identifier for
an Immersive Study program

STUDENT IMMERSION ATTENDANCE

Name Data Type Constraints Key Description Example Value

Student ID numeric(11) >0 PK, FK Student involved in an 12345


Immersive Study trip; unique
identifier for a student

IProgram ID numeric(11) >0 PK, FK Immersive Study trip 12345


associated with a student;
unique identifier for an
Immersive Study program
7

V. Table Creation SQL Queries

-- Create Programs Table


CREATE TABLE Programs_T
(ProgramID NUMERIC(11,0) NOT NULL,
ProgramDescription VARCHAR(max),
ProgramType ARCHAR(30) NOT NULL,
CONSTRAINT Programs_PK PRIMARY KEY (ProgramID));

--Create Education Table


CREATE TABLE Education_T
(EProgramID NUMERIC(11,0) NOT NULL,
EnrichmentProgramType VARCHAR(25) NOT NULL,
CONSTRAINT Education_PK PRIMARY KEY (EProgramID),
CONSTRAINT Education_FK FOREIGN KEY (EProgramID) REFERENCES
Programs_T(ProgramID));

--Create Research and Initiatives Table


CREATE TABLE ResearchAndInitiatives_T
(RProgramID NUMERIC(11,0) NOT NULL,
ResearchTopic VARCHAR(25) NOT NULL,
CONSTRAINT ResearchAndInitiatives_PK PRIMARY KEY (RProgramID),
CONSTRAINT ResearchAndInitiatives_FK FOREIGN KEY (RProgramID) REFERENCES
Programs_T(ProgramID));

-- Create Immersive Study Table


CREATE TABLE ImmersiveStudy_T
(IProgramID NUMERIC(11,0) NOT NULL,
Country VARCHAR(25),
ImmersionDate DATE DEFAULT GETDATE(),
CONSTRAINT ImmersiveStudy_PK PRIMARY KEY (IProgramID),
CONSTRAINT ImmersiveStudy_FK FOREIGN KEY (IProgramID) REFERENCES
Programs_T(ProgramID));

--Create Staff Table


CREATE TABLE Staff_T
(StaffID NUMERIC(11,0) NOT NULL,
StaffName VARCHAR(25) NOT NULL,
StaffTitle VARCHAR(30),
StaffAddress VARCHAR(30),
StaffCity VARCHAR(20),
StaffState CHAR(2),
StaffZip NUMERIC(5),
CONSTRAINT Staff_PK PRIMARY KEY (StaffID));

-- Create Student Table


CREATE TABLE Student_T
8

(StudentID NUMERIC(11,0) NOT NULL,


StudentName VARCHAR(30) NOT NULL,
Major VARCHAR(50),
StudentPhoneNumber NUMERIC(10),
CONSTRAINT Student_PK PRIMARY KEY (StudentID));

-- Create Alumni Table


CREATE TABLE Alumni_T
(AlumniID NUMERIC(11,0) NOT NULL,
AlumniName VARCHAR(30) NOT NULL,
DegreeObtained VARCHAR(30),
GraduationYear NUMERIC(4,0)
CONSTRAINT Alumni_PK PRIMARY KEY (AlumniID));

-- Create Company Table


CREATE TABLE Company_T
(CompanyID NUMERIC(11,0) NOT NULL,
CompanyName VARCHAR(50) NOT NULL,
Industry VARCHAR(30),
CONSTRAINT Company_PK PRIMARY KEY (CompanyID));

-- Create Educational Programs Table


CREATE TABLE EducationalPrograms_T
(CompanyID NUMERIC(11,0) NOT NULL,
EProgramID NUMERIC(11,0) NOT NULL,
Duration NUMERIC(1,0),
ProgramLocation VARCHAR(30),
CONSTRAINT EducationalPrograms_PK PRIMARY KEY (CompanyID, EProgramID),
CONSTRAINT EducationalPrograms_FK1 FOREIGN KEY (CompanyID) REFERENCES
Company_T(CompanyID),
CONSTRAINT Education_FK2 FOREIGN KEY (EProgramID) REFERENCES
Programs_T(ProgramID));

-- Create Alumni Employer Table


CREATE TABLE AlumniEmployer_T
(AlumniID NUMERIC(11,0) NOT NULL,
CompanyID NUMERIC(11,0) NOT NULL,
CONSTRAINT AlumniEmployer_PK PRIMARY KEY (AlumniID, CompanyID),
CONSTRAINT AlumniEmployer_FK1 FOREIGN KEY (AlumniID) REFERENCES
Alumni_T(AlumniID),
CONSTRAINT AlumniEmployer_FK2 FOREIGN KEY (CompanyID) REFERENCES
Company_T(CompanyID));

-- Create Student Educational Program Involvement Table


CREATE TABLE StudentEducationalProgramInvolvement_T
(StudentID NUMERIC(11,0) NOT NULL,
EProgramID NUMERIC(11,0) NOT NULL,
9

CONSTRAINT StudentEducationalProgramInvolvement_PK PRIMARY KEY (StudentID,


EProgramID),
CONSTRAINT StudentEducationalProgramInvolvement_FK1 FOREIGN KEY (StudentID)
REFERENCES Student_T(StudentID),
CONSTRAINT StudentEducationalProgramInvolvement_FK2 FOREIGN KEY (EProgramID)
REFERENCES Education_T(EProgramID));

-- Create Staff Immersion Attendance Table


CREATE TABLE StaffImmersionAttendance_T
(StaffID NUMERIC(11,0) NOT NULL,
IProgramID NUMERIC(11,0) NOT NULL,
CONSTRAINT StaffImmersionAttendance_PK PRIMARY KEY (StaffID, IProgramID),
CONSTRAINT StaffImmersionAttendance_FK1 FOREIGN KEY (StaffID) REFERENCES
Staff_T(StaffID),
CONSTRAINT StaffImmersionAttendance_FK2 FOREIGN KEY (IProgramID) REFERENCES
Programs_T(ProgramID));

-- Create Student Immersion Attendance Table


CREATE TABLE StudentImmersionAttendance_T
(StudentID NUMERIC(11,0) NOT NULL,
IProgramID NUMERIC(11,0) NOT NULL,
CONSTRAINT StudentImmersionAttendance_PK PRIMARY KEY (StudentID, IProgramID),
CONSTRAINT StudentImmersionAttendance_FK1 FOREIGN KEY (StudentID) REFERENCES
Student_T(StudentID),
CONSTRAINT StudentImmersionAttendance_FK2 FOREIGN KEY (IProgramID) REFERENCES
Programs_T(ProgramID));
10

VI. Practical Database applications

A. Immersive Study Trip Overview

This view of the tables uses the Immersion location and dates to identify the names of the
students and staff members that did attend or will attend the immersion trip. This is a useful
application to the organization because it will show them a combination of the Staff Immersion
Attendance table, the Student Immersion Attendance table, the Immersive Study Table, the
Student table and the Staff table. This specific view displays the names of the staff and students
that have attended the immersion trip to Ghana.

CREATE VIEW​ ImmersiveStudyTripOverview_V ​AS


SELECT​ StaffName, StudentName, Country, ImmersionDate
FROM​ StudentImmersionAttendance_T, StaffImmersionAttendance_T,
ImmersiveStudy_T, Student_T, Staff_T
WHERE​ ImmersiveStudy_T.IProgramID =
StudentImmersionAttendance_T.IProgramID
AND​ ImmersiveStudy_T.IProgramID =
StaffImmersionAttendance_T.IProgramID
AND​ Student_T.StudentID = StudentImmersionAttendance_T.StudentID
AND​ Staff_T.StaffID = StaffImmersionAttendance_T.StaffID
AND​ Country = 'Ghana'

B. Alumni Employment Trends

By combining the alumni and company tables into one, it will allow the CFIE to identify trends
in companies, industries, and degrees to help better structure the educational programs to prepare
students to thrive in their career after university. By understanding the degrees alumni obtained
and seeing which companies they work at, CFIE can create more opportunities for current
students. It will take the degree obtained from the alumni table, the industry and company name
from the company table, and the alumni ID and Company ID from the alumni employer table.

CREATE VIEW​ AlumniEmploymentTrends_V ​AS


SELECT​ DegreeObtained, CompanyName, Industry
FROM​ Alumni_T, Company_T, AlumniEmployer_T
WHERE​ Alumni_T.AlumniID = AlumniEmployer_T.AlumniID
AND​ Company_T.CompanyID = AlumniEmployer_T.CompanyID
GROUP BY​ Industry, DegreeObtained, CompanyName
11

C. Student Major Involvement in Enrichment Programs

This view of the tables uses the major from the student table with the EProgramID of the
enrichment program type to display the type of education certain majors are getting. This will
help the organization identify which majors are participating in enrichment programs to adapt the
type of programs they provide and better satisfy the demand.

CREATE VIEW​ StudentMajorInvolvementInEnrichmentPrograms_V ​AS


SELECT​ Student_T.StudentID, Major, EnrichmentProgramType ​as
EducationType
FROM​ Student_T, StudentEducationalProgramInvolvement_T,
Education_T
WHERE​ Student_T.StudentID =
StudentEducationalProgramInvolvement_T.StudentID
AND​ Education_T.EProgramID =
StudentEducationalProgramInvolvement_T.EProgramID
GROUP BY​ EnrichmentProgramType, Student_T.StudentID, Major

You might also like