ISMG3500 Homework 4, Due Wednesday, 9/23, 3:30 pm. 10 Points. Graded on a scale of 30-points then scaled down. Submit a hard copy in class and an ecopy to Canvas.
(Tentative. May need to be modified.)
Problem 1 (20 Points)
For each table below, perform the following 3 steps. (Perform all three steps on Table A first. Then perform all 3 steps on Table B).
Step 1: Determine if the table satisfies 2NF. If the table is already in 2NF, say so. If a table violates 2NF, say so and produce the 2NF tables. It is sufficient to just list the results of 2NF normalization.
Step 2: Determine if all resulting tables from Step 1 satisfy BCNF. For each of the resulting tables from Step 1, if it is already in BCNF, say so.If it violates BCNF, say so and produce the BCNF tables. It is sufficient to just list the results of BCNF normalization. There is NO need to describe the normalization process verbally.
Step 3: Check and make sure every table you wrote in Steps 1 and 2 has a primary key specified. If not, specify the primary key for each table missing the primary key.
Points will be deducted if a table you write does not have a PK specified.
A. Sale: (Date, Customer#, Product#, Vendor#, Vendor-City, SalesRepName)
Additional FD: Customer# SalesRepName; Vendor#Vendor-City
B. BookInfo: (BookTitle, Print#, DateofPrint, #copiesPrinted, #copiesSold, Price, MajorSponsorName, MajorSponsorPhone )
Additional FD: MajorSponsorName MajorSponsorPhone
Problem 2 (10 Points)
Determine if each of the following tables satisfy BCNF. If the table is already in BCNF, say so. If the table violates BCNF, say so and produce the BCNF tables. It is sufficient to just list the results of BCNF. There is NO Need to provide the normalization process. Do not go normalize it to 2NF first. Normalize each table to BCNF directly. The primary key and additional functional dependencies are already given. Do not assume further function dependencies. Be sure to identify the primary key for each table you write
Fundraising: (Event#,SubEvent, Date, OrganizerName, OrganizerPhone, Beneficiary)
Additional FDs: Event# Date, OrganizerName
OrganizerName OrganizerPhone
FileDownload: (SessionId,DownLoadId, FileName, SessionStDateTime, SessionEndDateTime, FileSize, FileType)
Additional FDs: SessionId SessionStDateTime, SessionEndDateTime
FileName FileSize, FileType
1
ISMG3500 Homework 3 Due Monday, 9/21, before class, 10 Points Total
Submit a hard copy in class and an eCopy to Canvas. Graded on 50 point scale then scaled down to out of 10 points.
Problem 1 (14 Points) Answer Yes or No to the following Functional Dependency questions. Base your answers on the data shown in Table X below. There are no further rows in this table. Provide reasoning VERY briefly.
X:
A
B
C
D
E
a1
b1
c1
d1
2013
a1
b1
c2
2013
a2
b2
c1
d1
2014
a3
b2
c2
2014
a3
b3
c1
d1
2014
a5
b3
c2
2014
1). Does A→B?
2). Does B→A?
3) Does B→E?
Hint: consider null value as a regular value.
4).Does ...
1. ISMG3500 Homework 4, Due Wednesday, 9/23, 3:30 pm. 10
Points. Graded on a scale of 30-points then scaled down. Submit
a hard copy in class and an ecopy to Canvas.
(Tentative. May need to be modified.)
Problem 1 (20 Points)
For each table below, perform the following 3 steps. (Perform
all three steps on Table A first. Then perform all 3 steps on
Table B).
Step 1: Determine if the table satisfies 2NF. If the table is
already in 2NF, say so. If a table violates 2NF, say so and
produce the 2NF tables. It is sufficient to just list the results of
2NF normalization.
Step 2: Determine if all resulting tables from Step 1 satisfy
BCNF. For each of the resulting tables from Step 1, if it is
already in BCNF, say so.If it violates BCNF, say so and produce
the BCNF tables. It is sufficient to just list the results of BCNF
normalization. There is NO need to describe the normalization
process verbally.
Step 3: Check and make sure every table you wrote in Steps 1
and 2 has a primary key specified. If not, specify the primary
key for each table missing the primary key.
Points will be deducted if a table you write does not have a PK
specified.
A. Sale: (Date, Customer#, Product#, Vendor#, Vendor-City,
SalesRepName)
2. Additional FD: Customer# SalesRepName; Vendor#Vendor-City
B. BookInfo: (BookTitle, Print#, DateofPrint, #copiesPrinted,
#copiesSold, Price, MajorSponsorName, MajorSponsorPhone )
Additional FD: MajorSponsorName MajorSponsorPhone
Problem 2 (10 Points)
Determine if each of the following tables satisfy BCNF. If the
table is already in BCNF, say so. If the table violates BCNF,
say so and produce the BCNF tables. It is sufficient to just list
the results of BCNF. There is NO Need to provide the
normalization process. Do not go normalize it to 2NF first.
Normalize each table to BCNF directly. The primary key and
additional functional dependencies are already given. Do not
assume further function dependencies. Be sure to identify the
primary key for each table you write
Fundraising: (Event#,SubEvent, Date, OrganizerName,
OrganizerPhone, Beneficiary)
Additional FDs: Event# Date, OrganizerName
OrganizerName OrganizerPhone
FileDownload: (SessionId,DownLoadId, FileName,
SessionStDateTime, SessionEndDateTime, FileSize, FileType)
Additional FDs: SessionId SessionStDateTime,
SessionEndDateTime
FileName FileSize, FileType
1
3. ISMG3500 Homework 3 Due Monday, 9/21, before class, 10
Points Total
Submit a hard copy in class and an eCopy to Canvas. Graded on
50 point scale then scaled down to out of 10 points.
Problem 1 (14 Points) Answer Yes or No to the following
Functional Dependency questions. Base your answers on the
data shown in Table X below. There are no further rows in this
table. Provide reasoning VERY briefly.
X:
A
B
C
D
E
a1
b1
c1
d1
2013
a1
b1
c2
2013
a2
b2
c1
d1
2014
a3
b2
c2
4. 2014
a3
b3
c1
d1
2014
a5
b3
c2
2014
1). Does A→B?
2). Does B→A?
3) Does B→E?
Hint: consider null value as a regular value.
4).Does E→B?
5). Does C→D?
6). Does E→D
7). Does A+C→D?
Problem 2 (5 Points): Table "Complaints" records complaints
related information. Given the functional dependencies
identified below, identify the primary key. Do not assume any
further functional dependencies.
Complaints: (Complaint#, ComplaintReason, CustID,
CustName, CustAddress, ReviewDept, AffiliateSite)
All Functional Dependencies:
Complaint# ComplaintReason
CustID CustName, CustAddress
ComplaintReason ReviewDept
Problem 3 (5 Points): Normalize the following table into first
normal form. The table uses one row to record information
5. about each student. A student may take one or more electives.
This table is not in 1NF. Normalize this table so it is in 1NF. In
your answer, list all columns of the new table, the primary key,
and all data, in a table format.
SID
LName
FName
Electives
100345
Ford
George
Geometry, Dance
200898
Gibbs
Mary
Orchestra
300987
Jordan
Jeff
Orchestra, Creative Writing, Dance
Problem 4 (20 Points): Determine if each of the following
tables satisfies 2NF. If the table is already in 2NF, say so. If
the table violates 2NF, say so and produce the normalized
tables. Briefly describe the normalization process. Please see
solutions document to the exercises. Be sure to identify the
primary key for each table you write. The primary key and
additional functional dependencies are already identified.
A: Fundraising: (Event#,SubEvent, Date, OrganizerName,
Beneficiary)
Additional FDs: Event# Date, OrganizerName
B: FileDownload: (SessionId,DownLoadId, FileName,
SessionStDateTime, SessionEndDateTime)
Additional FDs: SessionId SessionStDateTime,
SessionEndDateTime
6. C. Sale: (Date, Customer#, Product#, Vendor#, Vendor-City)
Additional FD: Vendor#Vendor-City
D. BookInfo: (BookTitle, DateofPrint, #copiesPrinted,
#copiesSold, Price, MajorSponsorName)
Additional FD: None
E. Tutoring: (TutorId, StudentID, TutorFName, TutorLName,
Sfname, SLName, TutorAffiliation, TaffiPhone, #ofTimes,
TotalFee)
Additional FD: TutorId#TutorFName, TutorLName,
TutorAffiliation
StudentIdSFName, SLName
TutorAffiliationTaffiphone
Problem 5 (6 Points):Normalize the following table into 2NF
and display the final tables with data in them. Take the primary
key and functional dependencies as given. Do not assume
further funtional dependencies.
TravelItinerary: (ReservationId,TravelerID, LegNum, FlightNo,
FlightDate, ReservationDate, ReservationTotal)
Additional FDs: ReservationIdRdate, Total
Reservation
Id
Traveler
Id
Leg
Num
FlightNo
FlightDate
Reservation
Date