project powerhouse
Post on 24-Feb-2018
229 Views
Preview:
TRANSCRIPT
-
7/24/2019 Project PowerHouse
1/18
Bruce Lee & Kayla Smart
-
7/24/2019 Project PowerHouse
2/18
Table of Content
Executive Summary 3
Entity-Relationship ia!ramatabase "o#el
$
Relational Schema %
ormali'ation an# (unctionalepen#encies
)
ormali'e# Tables in 3r#ormal(orm
*
ata ictionary +
,ueries ./
..
.0
CR1 "atrix .3
(orms .$.%.).*.+
Re2ections .,
-
7/24/2019 Project PowerHouse
3/18
Executive Summary
o4er5ouse 6ym7 Locate# in "iami7 (lori#a7 has approximately 0//
members8 Currently7 all recor#s an# services are lo!!e# on paper form an#
9le# in cabinets8 6iven their !ro4th since the e4 :ears7 early ten ne4
members are a##e# each 4ee; causin! their recor#s to become more
#is nee#8
?e 4ill be usin! "icrosoft @ccess 0/./ to complete this #esi!n for
o4er5ouse8
-
7/24/2019 Project PowerHouse
4/18
Entity-Relationship ia!ram atabase"o#el
-
7/24/2019 Project PowerHouse
5/18
Relational Schema
-
7/24/2019 Project PowerHouse
6/18
ormali'ation an# (unctionalepen#encies
atabase of o4er5ouse 6ym is normali'e# to 3r#ormal (orm8
(unctional epen#enciesA
"embership - "embershipSince- "embershipType- "embership@ctive- Employee- Customer
Employee - Employee(irstame- EmployeeLastame
Customer - Customer(irstame- CustomerLastame- 6en#er- ateDfBirth- Email- 5omehone- ?or;hone- Cell- Street@##ress- @pt1nitum
- City- State- ip
-
7/24/2019 Project PowerHouse
7/18
ormali'e# Tables in 3r#ormal (orm
"E"BERS5"embership
Customer "embershipSince
"embershipType
"embership@ctive
Employee
"E"BERS5 F"embership7 "embershipSince7 "embeershipType7"embership@ctive7 CustomerID, EmployeeIDG
E"LD:EEEmployee Employee(irstame EmployeeLastameE"LD:EE FEmployee7 Employee(irstame7 EmployeeLastameG
C1STD"ERCustomer
Customer(irstame
CustomerLastame
6en#er
ateDfBirth
C1STD"ER F Customer7 Customer(irstame7 CustomerLastame76en#er7 ateDfBirthG
CDT@CTCustomer Email 5omehone ?or;hone CellCDT@CT FCustomer7 Email7 5omehone7 ?or;hone7 CellG
RESECECustomer
Street@##ress
@pt1nitum
City State ip
RESECE FCustomer7 Street@##ress7 @pt1nitum7 City7 State7 ipG
ata ictionary
Attribute Table Null? Unique? Pkey? Fkey? Ref table RefIntegrity?
Domain
MembershipID Membership N NA NA !hara"ter slength ##$
!ustomerID Membership N N !ustomer %nfor"e& !hara"ter slength ##$
Membership'in"e Membership N N N NA NA !hara"ter slength ##$
MembershipType Membership N N N NA NA !hara"ter slength ##$
-
7/24/2019 Project PowerHouse
8/18
MembershipA"ti(e Membership N N N NA NA Data Type
%mployeeID Membership N N %mployee %nfor"e& !hara"ter slength ##$
%mployeeID %mployee N NA NA !hara"ter slength ##$
%mployeeFristName %mployee N N N NA NA !hara"ter slength ##$
%mployee*astName %mployee N N N NA NA !hara"ter slength ##$
!ustomerID !utomer N NA NA !hara"ter slength ##$
!utsomerFirstName !ustomer N N N NA NA !hara"ter s
length ##$
!utsomer*astName !ustomer N N N NA NA !hara"ter slength ##$
+en&er !ustomer N N N NA NA !hara"ter slength ##$
Date,f-irth !ustomer N N N NA NA !hara"ter slength ##$
!ustomerID !onta"t N !ustomer NA !hara"ter slength ##$
+mail !onta"t N N N NA NA !hara"ter slength ##$
.omePhone !onta"t N N N NA NA !hara"ter slength ##$
/orkPhone !onta"t N N N NA NA !hara"ter slength ##$
!ell !onta"t N N N NA NA !hara"ter slength ##$
!ustomerID Resi&en"e N !ustomer NA !hara"ter slength ##$
'treetA&&ress Resi&en"e N N N NA NA !hara"ter slength ##$
AptUnitNum Resi&en"e N N N NA NA !hara"ter slength ##$
-
7/24/2019 Project PowerHouse
9/18
!ity Resi&en"e N N N NA NA !hara"ter slength ##$
'tate Resi&en"e N N N NA NA !hara"ter slength ##$
0ip Resi&en"e N N N NA NA Data Type1$2
ueries
.G List ame an# 6en#er of the Customers8
Select istinct Customer(irstame7 CustomerLastame7 6en#er
(rom C1STD"ERH
0G List ame an# City of the Customers8
Select Customer(irstame7 CustomerLastame7 City(rom RESECE Ioin C1STD"ER Dn Resi#ence8Customer JCustomer8CustomerH
3G List Customer ame that has active membership8
Select Customer(irstame7 CustomerLastame(rom C1STD"ER Ioin "E"BERS5 Dn Cusomter8Customer J"embership8Customer?here "embership@ctive J yes>H
$G List members oine# in @pril8
Select Customer(irstame7 CustomerLastame(rom C1STD"ER Ioin "E"BERS5 Dn Customer8Customer J"embeship8Customer
?here "embershipSince J @pril>H
%G List "embership Type for Customer name# Kayla8
Select "embershipType(rom "E"BERS5 Ioin C1STD"ER Dn
"embership8"embership J
-
7/24/2019 Project PowerHouse
10/18
Customer8"embership?here Customer(irstame J Kayla>H
)G List the Employee that a##e# Bruce as a Customer8
Select Employee(rom "E"BERS5 Ioin E"LD:EE Dn "embership8Employee JEmployee8Employee Ioin C1STD"ER Dn"embership8Customer J Customer8Customer?here Customer(irstame J Bruce>H
*G List @ll Contact for Kayla8
Select 6mail7 5omehone7 ?or;hone7 Cell
(rom C1STD"ER Ioin CDT@CT Dn Customer8Customer JContact8Customer?here Customer(irstame J Kayla>H
+G List @ll Resi#ential information for Bruce8
Select M (rom RESECE(rom C1STD"ER Ioin RESECE Dn Customer8Customer JResi#ence8Customer?here Customer(irstame J Bruce>H
,G List Customer 4ith basic memberships8
Select Customer(irstame7 CustomerLastame(rom C1STD"ER Ioin "E"BERS5 Dn Customer8"embership
J"embership8"embership?here "embershipType J Basic>H
./G List Customer ames 4ith @ctive "embership prospecte# by "ary8
Select Customer(irstame7 CustomerLastame(rom "E"BERS5 Ioin C1STD"ER Dn "embership8Customer
JCustomer8Customer Ioin E"LD:EE Dn Customer8Employee
JEmployee8Employee
-
7/24/2019 Project PowerHouse
11/18
?here "embership@ctive J :es> @ Employee(irstame J"ary>H
..G List Customer ame 4ith both an active membership an# nonactive membership8
Select Customer(irstame7 CustomerLastame(rom "E"BERS5 Ri!ht Ioin C1STD"ER Dn"embership8Customer J
Customer8Customer?here "embership@ctive J yes>H
.0G List the "embership nformation on Kayla an# Bruce8
Select M (rom "E"BERS5 Ioin C1STD"ER DnCustomer8"embership J "embership8"embership?here Customer(irstame J Kayla> @ Customer(irstameJ>Bruce>H
.3G List the City an# State of Kayla8
Select City7 State (rom C1STD"ER Ioin RESECE DnCustomer8Customer J Resi#ence8Customer?here Customer(irstame J Kayla>H
.$G List the Employee name7 Customer ame7 an# their "embership of the Customer that has a basic membership8
Select Employee(irstame7 EmployeeLastame7Customer(irstame7 CustomerLastame7 "embership(rom E"LD:EE Ioin "E"BERS5 Dn Employee8"embership J"embership8"embership Ioin Customer Dn"embership8"embership J Customer8"embership?here "embershipType J Basic>H
.%G List @LL information on Bruce an# Kayla7
Select M (rom "E"BERS5 Ioin C1STD"ER Dn"embership8Customer J Customer8Customer Ioin CDT@CTDn Contact8Customer J Customer8Customer Ioin RESECEDn Resi#ence8Customer J Customer8Customer?here Customer(irstame J Bruce> @ Customer(irstame J
Kayla>H
-
7/24/2019 Project PowerHouse
12/18
-
7/24/2019 Project PowerHouse
13/18
-
7/24/2019 Project PowerHouse
14/18
-
7/24/2019 Project PowerHouse
15/18
-
7/24/2019 Project PowerHouse
16/18
-
7/24/2019 Project PowerHouse
17/18
Re2ection
For both Kayla and Bruce, this project has been a touchstone granting the practice
of data management fundamentals. With the educational procurement, we became
proficient and more perceptive on relationship entity diagrams, normalization, and S!
"ueries that involved fetching and creating data. #he most difficult element that we both
agree on was normalization. $owever, with repeated reviewing of lecture notes on the
subject, we are grasping the subject better. Fetching data and creating data using S!
-
7/24/2019 Project PowerHouse
18/18
statements was just as challenging but not too difficult to grasp. Something more
laborious in a time consuming mean is the e%perience of using &ircrosoft 'ccess and
(racle. We recognize the gravity of having ade"uate )nowledge in database management
tools such as 'ccess and (racle. &ore practice with these applications will benefit our
relevance in the corporate world better implementing database management and
information systems technology.
*n conclusion, we ac)nowledge the usefulness of learning database management+
furthermore, we are gratified with the course learning structure. *t has been a major
contributor towards our learning and practice in database management.
top related