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 a corresponding xmlschema file

A simple database with a single table contains data concerning car registration. The table contains four fields that store data relating to registration number (unique), make of car, year of manufacture and car colour

  Formulas within table cells always begin withend of exam

Which of the following allows you to view and access important information about your document all in one location

  In the response to this forum note that you have

in the response to this forum note that you have successfully installed the product and what you experienced in the

  Describe inventory application with keyboard events

(Inventory Application with Keyboard Events) Enhance the Inventory application that you developed in Tutorial 4 to prevent the user from entering input that is not a number. Use keyboard events to allow the user to press the number keys, the left and..

  Find maximum salary of employees from database table

Find the maximum salary of all employees who are not managers. Give all the managers in the database a 10 percent salary raise. Give all the other employees a 5 percent salary raise.

  Drawing a diagram of the data structures

Drawing a diagram of the data structures will help you figure out what you are deallocating as you write your dictionary_free function. This should help you avoid memory leaks.

  Calculate the ranking score for each of the ten documents

Calculate the ranking score for each of the ten documents based on each of the following query-document similarity measures - How does ranking compare with ranking obtained using the cosine similarity measure in Exercise 20? If there are differences..

  Main types of actions involve databases

What four main types of actions involve databases? Briefly discuss each. What are the responsibilities of the DBA and the database designers? What is the difference between a database schema and a database state?

  Provide a sql script file to define the database schema

Provide a SQL script file to define the database schema, HappyCustomerDB. Your script should be organised so that whenever the script is loaded all the database objects will be dropped and re-created.

  Write benefits of using dbms to manage data in program

Describe briefly what are the main benefits of using DBMS to manage data in program applications involving extensive data access.

  Part a major change definition and facilitating

part a major change definition and facilitating forces1.discuss the differences between a voluntary change and an

  List the average salary for employees of each age

Suppose you know that the following queries are the six most common queries in the workload for this corporation and that all six are roughly equivalent in frequency and importance

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