database sheet2
database sheet2
Imagine that you have been assigned to a team that will be developing an inventory tracking
system. As part of the project startup, your manager has asked each team leader to bring a basic
work plan to the next meeting. At that meeting, these work plans will be analyzed to determine the
overall project timeframe, costs, personnel requirements and software requirements. For now, as
the team leader for the data design team, you have been asked to bring a work plan that identifies
the phases of data design and includes the following information for each phase:
a). a description of the data design phase,
b). the inputs of the phase,
c). the outputs of the phase,
d). a key issue addressed in the phase.
e). a challenge that you can anticipate would occur in the phase.
QUESTION 4:
a) Normalization. Normalization is a process within logical design. What is the general
goal of normalization? (Hint: Why is it important to identify and remove partial and
transitive functional dependencies during normalization?)
b) An institute runs various part time and full-time courses. The duration of each course
ranges from 1 year to 2 years. A student can undergo at most one course at a time. The
institution has three departments and only one course can be run by one department. a)
Draw Entity Relationship Diagram. b) Convert E-R Diagram in 3NF.
c) Design a database for a car insurance company that has a set of customers each of
whom owns one or more cars. Each car has associated with it zero to any number of
record accidents. A database should provide the following details to user. 1.Identify all
the entities 2. Identify all the relations 3. E-R diagram 4. Relational model Or A car
insurance company name XYZ that has a set of customers each of whom owns one or
more cars. Each car has associated with it zero to any number of record accidents draw
the ER diagram and convert to 3NF.
QUESTION 5:
a) The craft trading website Itsy! Bitsy! is setting up a database to record sellers and their
products. This requires recording the following information:
• For each seller, their name, contact email, and postal address.
• For each product, its name, price, and number available.
• Which product is from which seller.
• A unique id number for each product.
Draw an entity-relationship (ER) diagram that represents this information. Make sure to
capture the constraints on the relationships involved and designate appropriate primary
keys for the entities.
b) The organizers of the EXAM 2011 international multi-conference need to keep track of
a large collection of workshops associated with the event. Initial requirements analysis
brings out the following information about what needs to be recorded.
• Each workshop has a name, and happens on a particular date — or dates, as some
workshops last more than one day.
• There are several participants, each of which may sign up to one or more workshops.
• For each participant, it is important to record their name, email address, and the
workshops which they wish to attend.
• There are several meeting rooms at the conference venue, each of a fixed capacity.
Meetings rooms are identified by a floor and room number.
• Every workshop needs an allocated meeting room; where a workshop lasts for two
days, it will use the same room on both days.
(a) Draw an entity-relationship diagram suitable for representing this information, in
particular the connections between participants, workshops, rooms, and dates.
(b) For each of the following concepts give a brief description of what it means, and
give an example from your ER diagram for the previous part.
(i) Key
(ii) Composite key
(iii) Total participation
(iv) Key constraint
How is total participation shown in an ER diagram? How is a key constraint shown?
Further analysis reveals additional requirements. However, not all of these can be
captured easily in an ER diagram.
• Each workshop must have an identified organizer among the conference participants.
• No participant may register for two workshops on the same day.
• Every participant must register for at least one workshop.
(i) Identify two of these which can be captured in an ER diagram.
(ii) For those two, show the additions required to your diagram.
a) Complete the normalization process and paste the Normalized forms along with a
brief overview of the rationale behind each of the Normal Forms.
b) After normalizing it write in SQL the final results
Custom Custome Salesperso SalesPers Conta Conta Conta Conta Conta Conta
er ID r Name nID on Name ct 1 ct 1 ct 1 ct 2 ct 2 ct 2
ID Phone ID Phone
1 Contoso 1 John Doe 1 Mary (518) 2 Selen (518)
Jane 456- a 299-
9791 Dura 9999
n
2 Heming 2 Dollie 1 Rober (518) 2 Lance
way Wilde t 456 Wild
Down 7896
c) Complete the normalization process and paste the Normalized forms along with a
brief overview of the rationale behind each of the Normal Forms and write in SQL
the final results.
QUESTION 7:
a) Translate the following ER Diagram into a relational database schema.
b) What ER Diagram might produce the following relational database schema? And write
in SQL every entity in the final form.