Create a Database for a security swipe key system

Are you stressed by poor grades and tight deadlines? We have your back at expert-tutor.net. We can do this or a different assignment for you at an affordable price. Use customdissertations.org writing services to score better and meet your deadlines.


Order a Similar Paper Order a Different Paper
Here is an overview of how key control works at Brock University: 

 

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:

  1. List all people who have keys.
  2. List all people who have keys to a particular room.
  3. List all people who have keys to a particular building.
  4. List all people who have keys to a particular door (lockset).
  5. List all people who have master or submaster keys.
  6. List all people who have a particular master or submaster key.
  7. List all keys and the doors they open.
  8. List all types of keys.
  9. List all categories of keys.
  10. List all keys for a particular door (lockset).
  11. List all keys for a particular room (a room can have multiple doors and a door can have multiple keys).
  12. List all keys for a particular building.
  13. List all keys a person has, along with their building, room and door.
  14. List all lost keys.
  15. List all master keys.
  16. List all submaster keys.
  17. List all locksets a master key works on.
  18. List all key requests still pending.
  19. List status of a particular key request.
  20. List all keys requests made between two dates.
  21. List all keys issued between two dates.
  22. List all lock repair requests still pending.
  23. List all lock repair requests made between two dates.
  24. List all lock repair request finished between two dates.
  25. 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 request
  • issue a key
  • change the status of a key
  • take a lock repair request
  • close a lock repair request
  • change the status of a lock
  • make 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 do
  • add new keys
  • add new locksets
  • add new buildings
  • add new rooms

Create the following MySQL users:

  • a security desk employee named secdesk
  • a key manager named keyman
  • a DB administrator named admin. 

For all three make the password 
btd210

You 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:

    1. 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.jpg
    2. 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.
Writerbay.net

We offer CUSTOM-WRITTEN, CONFIDENTIAL, ORIGINAL, and PRIVATE writing services. Kindly click on the ORDER NOW button to receive an A++ paper from our masters- and PhD writers.

Get a 10% discount on your order using the following coupon code SAVE10


Order a Similar Paper Order a Different Paper