Design an entity-relationship model of the given problem

Assignment Help Database Management System
Reference no: EM13944700

The proprietors of the Tom Wiley Department Store have approached you and asked if you could design a database to help them manage the complaints of their customers. They would like you to create a conceptual data model of their business information requirements and would like to see how the model could be used to provide the answers to some commonly requested queries and reports. ABC has provided the following information that it believes may be relevant to your task.

Tom Wiley operates stores in the following cities: Melbourne, Ballarat, Geelong, Sydney, Newcastle, Brisbane, Adelaide and Perth. Stores are referenced by store number. Tom Wiley also keeps store name, street, city, state, postcode, telephone, and manager's details. Each store is assigned a supervising store where major customer complaints are referred, training is conducted, and server applications and help desk functions are located. The supervising store currently supervises stores within its own state boundaries but this is not necessarily going to continue in the future.

When a customer rings with a complaint, details of the complaint are to be recorded. The details include the date the complaint was made, the employee id of the person recording the complaint, the customers first name, last name, street address, town, state, post code and phone numbers. A customer may provide the employee taking the call with more than one type of phone number and include mobile, fax, home and office numbers. A complaint may be one of three different types. It may be related to the store, one or more employees or product(s) of the store. If a complaint is about the store a short description of the complaint is recorded and it is referred to the manager. If the complaint is about employees of the store, the ID(s) of the employees involved in the complaint are recorded, along with a short description of the problem. If the complaint is about products, the product id, the number of items and a short description are recorded. A customer may be involved in number of complaints. Currently complaints are provided with individual identification numbers. Once a complaint has been resolved, the date that the complaint was closed is recorded.

Whilst the complaint is open all contact with the customer is recorded. Details of the date, time, the employee making contact, the type of contact (phone, fax, email or personal visit) and a short description of the contact are all recorded.

If the complaint is about a product, a replacement is normally provided. The store likes to keep track of all of the products replaced and the date the items were sent to the customer.

The store would also like you to interface your database with their products table in their inventory database. The products table has fields including ProductId, ProductName, ProductDescription, ProductUnitCost.

You are required to design (using an E-R diagram) an entity-relationship model of the problem, convert the model into a relational model, assess the normal form of each schema and write SQL queries that will answer the following queries.

1. An alphabetically sorted list of all customers who have made a complaint. Only customer number and name are required.

2. A more complete customer list sorted by customer id. It should contain customer id, name, address and all available phone numbers.

3. The date on which the most recent complaint has been made. The date itself will suffice.

4. A list of all complaints still open. Displaying complaint number will be sufficient.

5. A list of all complaints sorted by the type of the complaint. Displaying the complaint identification number, the customer id, the date the complaint was made and the type of complaint will be sufficient.

6. A list of all products involved in the customer complaints. Display the product id and name, sort this using the product name.

7. A total of the cost price of all products replaced. Displaying the total amount will be sufficient.

8. A list of all customers with more than 4 complaints. The customer id and name should be displayed.

9. A list showing the total number of complaints made about employees in each department. Displaying the department id and the total number of complaints is sufficient.

10. A customer list for all complaints still open that shows when the customer was last contacted. The customer id, name, last date of contact and type should be displayed, the list should be listed in descending date order.

What to submit

1. An entity relation diagram that models the problem which includes:

a. all entities, relationships (including names) and attributes that are relevant,

b. primary keys identified,

c. include cardinality (one / many) and participation (optional / mandatory) symbols,

d. assumptions you have made, e.g. how you arrived at the cardinality / participation for those not mentioned or clear in the business description, etc.

The E-R should be completed using the standards of this unit.

2. Relational data structures that translates your E-R diagram which includes:

a. relation names,

b. attribute names,

c. primary keys identified

d. For each relation show the level of Normalisation achieved, and for any not to Third Normal Form, explain why.

The data structures should be shown using the standards of this unit.

3. A relational database schema that translates your relational data structures which includes:

a. table names,

b. column names and field types

c. primary keys identified

4. A hardcopy of the data in your database (developed using MySQL), this should contain sufficient data in eachtable to demonstrate that your queries work.

5. An electronic copy of your database, with all records saved in the database. id _firstname_lastname.sql

Example 123456_Sunam_Pradhan.sql

6. Hardcopy of each query and the result of the query (screen capture). You should submit all design work, program documentation, and relevant sample screen shots of your implementation.

Reference no: EM13944700

Questions Cloud

Luther is about to add a new fleet of delivery trucks : Luther is about to add a new fleet of delivery trucks. The price of the fleet is $1.5 million. If Luther acquires the new fleet of delivery trucks using a capital lease, Luther's Debt to Equity ratio will be closest to:
Determine the regression equation for the data : Time and cost word processing in the first two columns of table below we repeat our data on time and cost for a sample of 5 word processing jobs. Cost($) Time (hr) y x 125 5 175 7 325 15 425 20 475 22.5
Compile the code and run it : OptionPane.showMessageDialog(null, "How good is your memory?
Why descartes think that philosophize to refute skepticism : Why does Descartes think that to philosophize is to refute skepticism"? The short answer is that Descartes thinks knowledge is possible. Skepticism denies that knowledge is possible.
Design an entity-relationship model of the given problem : You are required to design (using an E-R diagram) an entity-relationship model of the problem, convert the model into a relational model, assess the normal form of each schema and write SQL queries that will answer the following queries.
Describe the five ways to manage conflict : Describe the five ways to manage conflict. Explain your personality type (Myers-Briggs Typology) and then describe what would be the most likely way for you to manage conflict.
Formed when an object like the sun collapses : a neutron star is formed when an object like the sun collapses. Suppose a uniform spherical star of mass M and radius R collapses to a uniform sphere of radius 10^-5 R. If the original star has a rotation rate of 1 rev each 25 days, (like the sun)..
Probability of getting an average : Assume grades in a course follow a normal distribution. The average grade in a class is 75, and the standard deviation is 5 points. A professor takes a sample of 10 people in the class and calculates the average for that class is also 75. IN other..
Who is silenced or forgotten in your school curriculum : Who is silenced or forgotten in your school curriculum as a result of these decisions or policies?

Reviews

Write a Review

Database Management System Questions & Answers

  Create an employee database

Create a report that contains the above data - be sure to include a Hampton University logo in your report.

  Find all employees in the database

Find the names and cities of residence of all employees who work for ABC Corporation

  Could a relation be stored as a sequential file

Suppose a sequential file contains 50,000 records, and 5 milliseconds are required to interrogate an entry. How long should we expect to wait when retrieving a record from the middle of the file?

  What is sql and for what purpose is it used in databases

What is SQL and for what purpose is it used in databases

  Explain denormalized table in normal form

The DBA denormalized some of the data in the Premiere Products database to improve performance. Which field or fields cause the table to no longer be in third normal form? In which normal form is the denormalized table?

  Advantages and disadvantages of using data analytics

Analyze the main advantages and disadvantages of using data analytics within the industry or company that you have chosen

  Construct an rea diagram

Design a minimal relational database for Pieces Boutique. By minimal, it is meant that option to post a key into existing table because of either needed participation or a discernible high load could be exercised where appropriate.

  Design an relational model

Choose 2 enterprises(businesses, corporations, companies, institutions) from one or more economic, organizational, institutional or industrial sector of interest to you. See the Appendix for suggestions and examples.

  Identify department store transactions that can be stored

Identify the potential sales and department store transactions that can be stored within the database. Justify how Big Data tools could be used for forecasting sales and inventory of the department store.

  Rationale for fragmentation choices is clearly tied

Fragmentation strategy-Rationale for fragmentation choices is clearly tied to the facts in the business case. considerations for horizontal, vertical and mixed approaches were explored.

  Provide the sql to amend the original table design

You have been given the following specifications of a simple database for a netball association that keeps record of players, teams and matches.

  Ideal choice for relational database design

The Entity-Relationship Diagram is widely used in the design of relational databases. Why do you think this is so - what is it about this model that makes it the ideal choice for relational database design?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd