Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2 a . In MySQL , you will find a table called PROBLEM 2 . b . Draw a functional dependency diagram for the

Problem 2
a. In MySQL, you will find a table called PROBLEM2.
b. Draw a functional dependency diagram for the table shown below. The following
business rules apply:
1. Law enforcement authorities periodically seize material suspected of being
drugs during traffic stops, or arrests at places of resident. When they do,
the material collected is known as a collection. Each collection is given a
unique case number. The date and location on which the collection was
made is recorded. Each collection is also seized by a single law
enforcement agency.
2. A law enforcement agency has a unique name and is one of several
types: policy department (PD), sheriffs office (SO), etc.
3. From the collection, one or more exhibits are taken. An exhibit is a portion
of a collection. It is given a unique number. Law enforcement records an
estimate of the amount of material that makes up an exhibit. A description
of each exhibit is also recorded.
4. An exhibit is sent to a laboratory for analysis. The laboratory divides the
exhibit up into samples for further testing. The lab gives each sample a
unique identifier (a lab number), runs the tests, and records the analysis
date and analysis results for the sample.
c. State the highest normal form this table could be in in its present form (i.e. if the
table shown here satisfies 1NF but does not satisfy 2NF, then the answer would
be 1NF).
d. Normalize this table through BCNF. Decompose the Problem2 table
appropriately. Name each of the resulting tables P2_X, where X = some
appropriate name for the table.
CREATE TABLE PROBLEM2
( LABNUMBER VARCHAR(10),
TYPE VARCHAR(100),
DESCRIPTION VARCHAR(255),
LOCATION VARCHAR(100),
ESTIMATEDAMOUNT numeric(5,1),
EXHIBITUNITS VARCHAR(50),
ANALYSISDATE DATE,
RESULTS VARCHAR(255),
EXHIBITNO VARCHAR(10),
COLLECTIONDATE DATE,
CASENUMBER VARCHAR(30),
AGENCY VARCHAR(75)
) ;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions