220 likes | 371 Views
Physical Plant Campus Services Department Final Project Presentation 12/07/07. Team 3 Audrey F. | Charles K. | Fred Z. | Kenneth L. | Sam L. | Sara S. | Stanley K. Overview. Company Background Project Purpose EER Diagram Relational Schema Relation Normalization Database Queries.
E N D
Physical PlantCampus Services DepartmentFinal Project Presentation12/07/07 Team 3 Audrey F. | Charles K. | Fred Z. | Kenneth L. | Sam L. | Sara S. | Stanley K.
Overview • Company Background • Project Purpose • EER Diagram • Relational Schema • Relation Normalization • Database Queries
Company Background • The University of California Physical Plant Campus Services Department (PPCS) maintains the University of California Berkeley’s campus facilities, utilities, and resources • PPCS is responsible for taking maintenance, repair, and emergency service calls from UC Building Coordinators and Capital Projects Managers • A Customer Service Representative at PPCS receives maintenance requests and coordinates workers to inspect and resolve reported issues • Before any maintenance work can be done, PPCS workers must disable any affected utilities such as water, steam, or electricity at the location through a process known as a shutdown
Project Purpose • Create a database that will accurately represent the PPCS shutdown process • Coordinate information used by all parties involved in the shutdown process • Explore data relationships to identify areas of inefficiency in the shutdown process
Relational Schema • Person (SSN, First_Name, Last_Name, Office_Address, Email, Phone, Fax, Position) i. Contractor (SSN4, SuperIntendentName, ProcessInvolvement, CapitalProjects) • Electrical (SSN4, TechnicianLevel, TechnicianType, TestsExpertise) • Elevator (SSN4, AreaSupervised, CertificationLevel) • Utility (SSN4, UtilityType) • Plumbing_Machinary (SSN4, PlumberType, EmergencyCapable) • Lock Shop (SSN4, ServiceType, SpecialAssistance) • Structural (SSN4, ServiceGroups, Licensure) • Ventilation (SSN4, ModelExpertise, ModelExperienced, DateofLastMaintainence, MechanicType, Scale) • Stationary (SSN4, CertificationLevel)
Normalization Analysis 2NF FD1 FD2 Partial Dependency violates 2NF Normalization ProcessForm1 FD3 ProcessForm2 FD4
Normalization Analysis 3NF FD1 FD2 Transitive Dependency violates 3NF Normalization Location1 FD3 Location2 FD4
MS Access Queries • Shutdown Statistics • Craftspeople Contacted • Building Age Correlation • Process Time of Forms
Monthly Shutdown Statistics Query: Find the frequency and proportion of each type of shutdown occurring over a given month. Purpose: PPCS can better allocate its workers and resources to efficiently complete the most frequently requested shutdown types.
Monthly Shutdown Statistics SQL> SELECT [Shutdown Request Subclass].Type, [Shutdown Request Subclass].Date_Recorded, Count([Shutdown Request Subclass].WO_No) AS CountOfWO_No FROM [Shutdown Request Subclass] GROUP BY [Shutdown Request Subclass].Type, [Shutdown Request Subclass].Date_Recorded HAVING ((Shutdown Request Subclass].Date_Recorded)=[Month]); SELECT [Query 1A].Type, [Query 1A].Date_Recorded AS [Month], [Query 1A].CountOfWO_No AS Frequency, [CountOfWO_No]/[SumOfCountOfWO_No] AS Proportion FROM [Query 1A], [Query 1B] GROUP BY [Query 1A].Type, [Query 1A].Date_Recorded, [Query 1A].CountOfWO_No, [CountOfWO_No]/[SumOfCountOfWO_No], [Query 1B].SumOfCountOfWO_No;
Monthly Shutdown Statistics 1 2 Type the month Type the year
Craftspeople Contacted Query: List the names of all craftspeople contacted previously for a specified shutdown. Purpose: PPCS can identify the most experienced workers for each type of shutdown.
Craftspeople Contacted SQL> SELECT [Verification Subclass].[Lead Craft EID], [Verification Subclass].[Assist Craft], [Verification Subclass].[PhoneNumber], Count([Verification Subclass].[Assist Craft]) AS [CountOfAssist Craft] FROM [Verification Subclass] GROUP BY [Verification Subclass].[Assist Craft];
Craftspeople Contacted 1 Type shutdown name
Building Age Correlation Query: Calculate the correlation coefficient between the age of a specified building and the number of shutdowns. Purpose: PPCS can identify buildings that are particularly problematic due to building age and may require extra maintenance.
Building Age Correlation SQL> SELECT DISTINCT S.LID, L.Age, Shutdown_per_LID, (COUNT(DISTINCT S.LID)*SUM(Shutdown_per_LID * L.Age)- SUM(Shutdown_per_LID)*SUM(L.Age))/(SQRT(COUNT(DISTINCT S.LID)*SUM(SQUARE(Shutdown_per_LID))- SQUARE(SUM(Shutdown_per_LID)))* SQRT(COUNT(DISTINCT S.LID)*SUM(SQUARE(L.Age))- SQUARE(SUM(L.Age)))) AS DISTINCT Correlation FROM Shutdown S, Location L WHERE EXISTS (SELECT COUNT(*) AS Shutdown_per_LID FROM Shutdown S, Location L WHERE S.LID = L.LID GROUP BY S.LID);
Building Age Correlation 1 Type full or partial location name OR
Process Time of Forms Query: Calculate the mean and variance for the time elapsed between a shutdown request and a shutdown completion over a specified month. Purpose: PPCS can identify bottlenecks in the shutdown process.
Process time of forms SQL> SELECT ProcessForm.WO_No, ProcessForm.CSR, ProcessForm.Date_Recorded, ProcessForm.Comments, ProcessForm.Is_Emergency_SD, ShutdownRequest.Request_Date, Completion.Completion_Date, [Completion_Date]- [Request_Date] AS Date_Difference, ShutdownRequest.Type FROM (ProcessForm INNER JOIN Completion ON ProcessForm.WO_No = Completion.WO) INNER JOIN ShutdownRequest ON ProcessForm.WO_No = ShutdownRequest.WO; SELECT Avg([Query 4A].Date_Difference) AS Mean, Var([Query 4A].Date_Difference) AS Variance, [Query 4A].Type FROM [Query 4A] GROUP BY [Query 4A].Type;
Process Time of Forms 1 2 Type the month Type the year
Questions? Special thanks to Keith Muller and Shaylah Rigmaiden!