Create a Database for a security swipe key system

Here is an overview of how key control works at Brock University: http://www.brocku.ca/facilities-management/key_swipe_card_requests You are to design and implement the DB for this system. Read the web page and all the PDFs carefully to identify potential entities. Some attributes and entities may not be obvious (for example, there are levels of master keys which open more than one door). There also may be entities or attributes that do not appear on these forms but are essential to tracking keys (for example, what is the current status of a key request or lock change request?). You design must be able to answer the following questions through SQL queries:List all people who have keys.List all people who have keys to a particular room.List all people who have keys to a particular building.List all people who have keys to a particular door (lockset).List all people who have master or submaster keys.List all people who have a particular master or submaster key.List all keys and the doors they open.List all types of keys.List all categories of keys.List all keys for a particular door (lockset).List all keys for a particular room (a room can have multiple doors and a door can have multiple keys).List all keys for a particular building.List all keys a person has, along with their building, room and door.List all lost keys.List all master keys.List all submaster keys.List all locksets a master key works on.List all key requests still pending.List status of a particular key request.List all keys requests made between two dates.List all keys issued between two dates.List all lock repair requests still pending.List all lock repair requests made between two dates.List all lock repair request finished between two dates.List that status of a particular repair request.Implement this DB under your btd210 DB.Create a view named securityDesk for security personnelso they can do the following things (and only the following things!):take a key requestissue a keychange the status of a keytake a lock repair requestclose a lock repair requestchange the status of a lockmake any of the above queries (and other similar queries)Create a view named keyManager for the person who manages the key control system so he can do the following things (and only the following things):everything the securityDesk can doadd new keysadd new locksetsadd new buildingsadd new roomsCreate the following MySQL users:a security desk employee named secdeska key manager named keymana DB administrator named admin. For all three make the password btd210You should also apply appropriate security to the DB – grant these users appropriate permission (for the first two, it would be on their associated views, and for the admin it should be all permission for everything in the DB).If you have any questions about how this key control system works, ask me for clarification.The final project should include the following:A complete ER diagram of the final design. Please use a drawing tool to create this diagram (no hand-drawn diagrams!). There is an OpenOffice drawing program that will work nicely, and you may save the file in its native format. If you use another drawing tool (like Visio), please save the diagram as a JPEG. Or you can use Workbench and export as a JPEG, SVG or PDF. The name of the file should be both your myseneca IDs, separated by a hyphen (and don’t forget the correct file extension!). For example, jsmith-tjones . A dump of the schema fully implemented in MySQL as a SQL script – the dump should include everything necessary to recreate all the tables and views in btd210 (I will create the database) and load them with data. It should also recreate your users and grant them permission to the views as stated above. I will be loading this schema and testing it. The name of the file should be both your myseneca IDs, separated by a hyphen (and don’t forget the correct file extension!). For example, jsmith-tjones.sql. Note that this file requires the student honesty statement as a comment.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER