Download Office of Environmental Health and Safety

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Team 7
Allen Chen
Anar Joshi
Jiho Tahk
Minh Tran
Justin Yang
1.
2.
3.
4.
5.
6.
7.
Client
EER
Relational Schema
Access Database
Queries
Normalization
Next Steps
Office of Environmental Health & Safety
 Office
of Environmental Health and Safety:
provide health, safety, and environmental
guidance and services for the campus
EH&S
Emergency
Response
Environmental
Protection
Workplace
Safety
Radiation
Safety
Hazardous
Materials
Fire Prevention

Responsibilities include:
• Biosafety
• Food permits
• Indoor air quality

Contact: Phil Maynard, Laboratory
Safety Specialist
• Lead for inspection of over 1,200
fumehoods on campus
Gas Cabinet
Vented Sink
Exhausted
Laminar
Flow
(ELF) Hood
 Different
ventilation systems
documented on different databases
 Standard forms for all databases
 Hard to obtain useful information
 Difficult to compile reports from several
separated databases.
 Inaccurate/Nonspecific data due to use of
standard forms
 Created
a prototype database using MS
Access including all crucial elements
 Developed queries to get information
from the database
1.
People (PID, Fname, Lname, Phone#, email)
1a.
Surveyor (PID1, SuperID1b, wage)
1b.
Supervisor (PID1, salary,)
1c.
Other(PID1)
1d.
User (PID1, department, purpose_type)
1e.
PPCS_Technician (PPCSID1, Group)
1f.
2.
3.
4.
Building_Coordinator(BCID1, building,
Rm_num)
Complaint (CID, Type, Location5, Date, Time,
Complainer_PID1)
Inspection_Report (RID, Inspection_ID4,
Insp_Rpt_Date_filed, comments, time_spent,
velocity, mont_velocity)
Inspection_Timeslot (Inspection_ID, Date_filed,
Date_required, Location5, Time, SurveyorPID1a,
violationID7, ventSysID6)
4a.
Emergency_Inspection (Inspection_ID4,
SuperID1b)
4b.
Routine_Inspection (Inspection_ID4)
4c.
5.
6.
Repair_Validation (Inspection4,
PPCS_requestor1, repair_successful)
Location (LID, Building, Room, BCID1f)
Ventilated_System (VSID, LID5, Manufacturer,
Model, Construct, Install_date)
7.
6a.
ELF_Hood (VSID6, Fire_sprinkler,
blower_switch, )
6b.
Gas_Cabinet (VSID6, Gas_type,
concentration, gas_exp_date)
6c.
Vented_Sink (VSID6, Number_sink_holes,
hazards)
Violation (VID, date_recorded, date_fixed,
reportID3)
7a.
Overdue_Violation (VID7, status)
7b.
Airflow_Violation (VID7, PPCSID1e)
7c.
8.
Accuracy_Violation (VID7, PPCSID1e,
monitorID8)
Monitor (MID, VSID7, brand, model, type)
8a.
8b.
9.
10.
11.
12.
13.
14.
Flow_Sensor (MID8, airflow_speed)
Gas_Sensor (MID8, levels, temperature,
pressure)
Super_WorkOrder_To (SuperID1b,
PPCSID1e,Date_issued)
Files_Complaint (SuperID1b, complaintID2)
User_Has_Room_In (userID1d, locationID5)
Send_Report_Copy_To (superID1b, reportID3)
Report_CCed_To (BCID1f, reportID3)
Vent_Violations (ventSysID6, violationID7)
Mean Time to Failure
(and variance)
• Using historical data for each ventilated system, we find the
average and variance of the time to failure
Seasonality of System
Evaluations
• Based on the academic calendar, time periods can be made
to determine “demand” for surveyors
Optimal Number of
Surveyors
• Using seasonality values from previous query, as well as rate
of evaluation, this query calculates optimal number of
surveyors
Systems that Need to be
Checked
• Given inputs for risk preference time duration, and systems
marked for rescheduling, this query outputs ventilated
systems that need to be checked
Best Schedule for Regular
Maintenance Evaluation
• This query lists a ranked order of “jobs,” indicating the order
in which these jobs should be done, with a “job” pertaining to
a building
SELECT t.time_period,
COUNT(t.ventSysID) AS NumSysEvals
FROM Inspection_Timeslot AS t
GROUP BY t.time_period;
SELECT VS.VSID
FROM Ventilated_System AS VS
WHERE EXISTS (
SELECT *
FROM Violation, Vent_Violations
WHERE Vent_Violations.ventSysID = VS.VSID AND
Violation.VID = Vent_Violations.violationID AND
Violation.date_recorded - Date() < next_days)
OR
(mean_time_between_failure^(within_how_many_days_do_you_not_want
_a_failure)* e^(-mean_time_between_failure)/factorial) >
Min_Probability_of_Failure
AND NOT EXISTS
(SELECT *
FROM Inspection_Timeslot AS T
WHERE T.ventSysID=VS.VSID And T.Date_filed>(Date()do_not_count_systems_checked_in_the_past_how_many_days)
);





















Multivalued Attributes to Single valued Attibutes
1. People (PID, Fname, Lname, Phone#, email)
changed to
People (PID, Fname, Lname, Phone#)
People_email(PID, email)
2. Vented_Sink (VSID6, Number_sink_holes, hazards)
changed to
Vented_Sink (VSID6, Number_sink_holes)
Vented_Sink_Hazard(VSID6, hazard)
Violation of 3NF
Accuracy_Violation (VID7, PPCSID1e, monitorID8 )
* Can be accessed using multiple joins
* Readily accessible for user to report
Generate
Reports
and Forms:
Simple yet
Practical
Queries:
• Inspection Data Entering Form
• Newly Added Vent System Form
• Surveyor Inspection Report
• Surveyor Performance Report
• Ventilation System Violations Summary
Report
• Retrieve All Violations
• Prioritize Violations