famu cmrp database by: jabare mitchell tyshun jones gassie orr
TRANSCRIPT
![Page 1: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/1.jpg)
FAMU CMRPDatabase
By: Jabare Mitchell
Tyshun JonesGassie Orr
![Page 2: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/2.jpg)
Purpose of the Database The purpose of the database is to allow the
developers and users to pull out particular sets of information through queries within our application…. To retrieve data.
(Essentially this version is a draft version due to the fact secure shell is not the software we will be using to implement our app.)
![Page 3: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/3.jpg)
The Makeup of Our Database Modeled after our ER diagram
Database contains 16 different tables each with its own set of attributes depending on what they are.
![Page 4: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/4.jpg)
Sixteen Tables Stud admin E_coordinator Safety official Parking services Classes Class section Class roll
Location Events Alerts Lot Building Room Users Instructor
The Table highlighted in red will be the ones discussed in detail
![Page 5: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/5.jpg)
Admin ADMIN_ID
ADMIN_USERNAME
ADMIN_NAME
ADMIN_PASSWORD
NOT NULL CHAR(2)
VARCHAR2(25)
VARCHAR2(50)
VARCHAR2(20)
The not null highlighted above shows that Admin_ID is the primary key for this table.
![Page 6: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/6.jpg)
Classes CLASS_ID CHAR(6)
CLASS_NAME
CLASS_PREREQ
CLASS_CREDITS
NOT NULL CHAR(6)
VARCHAR2(35)
CHAR(7)
NUMBER(1)
![Page 7: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/7.jpg)
Alerts ALERT_ID
ALERT_DESCR
ALERT_TIME
ALERT_DATE
ALERT_TYPE
ALERT_USERNAME
NOT NULL CHAR(5)
VARCHAR2(150)
DATE
DATE
VARCHAR2(25)
VARCHAR2(25)
![Page 8: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/8.jpg)
Location LOC_ID
LOC_NAME
COORD_LAT
COORD_LONG
NOT NULL CHAR(5)
VARCHAR2(40)
NUMBER(8,6)
NUMBER(8,6)
![Page 9: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/9.jpg)
Building BUILD_ID
BUILD_ROOMS
LOC_ID
NOT NULL CHAR(4)
NUMBER(3)
CHAR(5)
The Loc_ID attribute is a foreign key coming from the Location table.The Build_ID is still the Primary key
![Page 10: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/10.jpg)
The Purpose of the Sample Queries The sample queries will give us an Idea on
how to find information and also how to design our GUI so that we can ask the same questions in an efficient manner.
Lets us know our database is accurate.
We will use the same tables for example purposes .
![Page 11: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/11.jpg)
Admin Queries1. Figure out all of the Admin’s Names
2. Count how many admin’s there are
3. Search for an admin by there username
![Page 12: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/12.jpg)
Classes Queries
1. Find a class by its name
2. Find a class by its ID
3. Find a classes pre-reqs
![Page 13: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/13.jpg)
Location Queries1. Get the coordinates to a building
2. Find a location by its Loc_ID
3. Count how many locations there are
![Page 14: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/14.jpg)
Alerts Queries
1. View alert descriptions
2. View the time an alert occurred by using its Alert_ID
![Page 15: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/15.jpg)
Building Queries1. Find a building using from its name or loc_id
![Page 16: FAMU CMRP Database By: Jabare Mitchell Tyshun Jones Gassie Orr](https://reader035.vdocument.in/reader035/viewer/2022080917/56649ebf5503460f94bca822/html5/thumbnails/16.jpg)
Questions?