Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Toys 4 U is a company that specializes in toy hire for parties, kindergartens, and playgroups. They also offer equipment for infants and babies for

Toys 4 U is a company that specializes in toy hire for parties, kindergartens, and playgroups. They also offer equipment for infants and babies for hire. Toys 4 U can own several copies (TOYCOPY) of each toy (TOY). For example, a store may have 10 copies of the toy Rocking Horse. In the database, Rocking Horse would be one TOY, and each copy would be a TO COPY. A hire transaction (HIRE) involves one or more copies being hired to a member (MEMBERSHIP). A copy can be hired many times over its lifetime; therefore, there is an M: N relationship between HIRE and TO COPY. DETAILHIRE is the bridge table to resolve this relationship.
1). Design your ER Diagram with all entity names, attribute names, primary and foreign keys, relationships, cardinality, and participation indicated. You may add entities or attributes as you see fit. You will need to normalize all of your entities, to resolve any many to many relationships.  Your attribute names, primary and foreign keys should be indicated as per the conventions given in the lecture slides (i.e. entity/table names in capitals, attributes as proper nouns, primary key underlined, and foreign keys in italics).  All many to many relationships should be resolved, and you should include a discussion of normalization including the normal form that each entity is in and why that is optimal. Also, a discussion of how normalization was achieved for that entity.

2). For each entity, create some example data for that entity. Include 5 rows of data for each entity.

3). Write the SQL code to create the table structures from your developed ERD. The structures should contain the attributes specified in your ERD. Use data types that are appropriate for the data that will need to be stored in each attribute. Enforce primary key and foreign key constraints as indicated by your ERD.

4). Write the SQL code to insert your data from (2) into the SQL table structures.

Step by Step Solution

3.37 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

ER Diagram for TOYS 4 U This ER model has 5 main entities 1TOYS 2TOYCOPY 3HIRE 4MEMBERSHIP 5ADDRESSm... 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

Business Statistics

Authors: Norean Sharpe, Richard Veaux, Paul Velleman

3rd Edition

978-0321944726, 321925831, 9780321944696, 321944720, 321944690, 978-0321925831

More Books

Students also viewed these Databases questions

Question

Explain Galens pneuma concept of the soul.

Answered: 1 week ago