Present an entity-relationship model?

Assignment Help Database Management System
Reference no: EM13923170

A company that sells and installs tiles needs a database with the requirements specified below.

Your task is to design and implement a relational database that meets all their requirements.

Please let me know if you need further clarifications on any of the requirements.

If you need to make any other assumptions, please state your assumptions explicitly.

Requirements:

The company has several branch offices. Each branch is identified by a branch_number. The name, address (street, city, ZIP), and revenue_target of each branch office are maintained.

Each branch has a designated branch manager and the branch manager's employee_ID is maintained.

Each employee has a unique employee_ID.

The company maintains the first name, last name, designation, starting_date, branch_number, salary, and supervisor's employee_ID for each employee.

Each product sold by the company is identified by a unique product_code.

The description, unit price, and stock_level of each product are maintained.

Each type of installation performed by the company is identified by a unique installation_type.

The description and the billing_rate per hour for the installation_type are maintained.

Customers are identified by unique customer_ID. Information is maintained on each customer's address (street, city, ZIP) and phone_number.

Each order is identified by unique order_number.

Each order is placed by a unique customer on a specific date. An employee is designated as the salesperson for each order.

A customer order may include orders for multiple products and installation services. For each product in an order, the quantity_ordered is recorded.

For each installation_type ordered, the estimated number_of_hours for installation is recorded.

Note that there may be orders that include products but no installation services.

Similarly, there may be orders that include installation services but no products.

Specific Tasks:

Present an Entity-Relationship model that meets the above requirements.

Try to ensure that your model has no many-to-many relationships.

Present a logical data model to meet the requirements where all the tables are in the third normal form.

Specify all the attributes, primary keys and foreign keys of the tables. For each attribute specify the data type and domain.

Implement the database designed in step 2 using any DBMS of your choice. Populate the tables with sample data.

Formulate SQL queries for the following:

For each salesperson, list the salesperson's Employee_ID, Name, supervisor's Employee_ID, and supervisor's name.

For each product list the Product_code, stock_level, and the total quantity ordered.

For each Order list the Order_number, order date, Employee_ID of salesperson, total amount for products, and total amount for installation.

The total amount for products is the sum of the unit price times quantity of the products ordered.

The total amount for installation is the sum of number_of_hours times the billing_rate of the installation types.

The revenue_generated by a branch is the sum of the total amount of all orders for salespersons working at that branch.

The total amount of an order is given by the sum of the total amount for products and the total amount for installation.

List the branch number, branch name, revenue_target, and the revenue_generated for each branch that fails to meet its revenue_target.

List the list the Employee_ID and name of salespersons who have sold only to customers located in the same city as the city in which the salesperson's branch is located.

List the list the Employee_ID and name of salespersons who have sold to every customer located in the same city as the city in which the salesperson's branch is located.

Reference no: EM13923170

Questions Cloud

Major issue with international courts : The state of California is requiring all commercial trucks to get special windshield wipers installed at a price of $1,000 a pop. It's supposed to increase safety, but this has not been fully proven. Trucks will have to go around the state to avoi..
How does your industry work with measurable objectives : How does your industry incorporate the Analysis Phase when creating training or educational events? How does your industry work with measurable objectives
Individual personality profiles : After filling out apersonality test, students were given individual personality profiles. Mostsaid that their profiles were fairly good descriptions of themselves, and theywere amazed to discover that they had all received the same profile. Thisil..
Is it possible for organisations to follow emergent strategy : Examine the criticisms of prescriptive strategies in Section 2.1. Is it possible for organisations to follow both prescriptive and emergent strategies or do they need to choose?
Present an entity-relationship model? : The company has several branch offices. Each branch is identified by a branch_number. The name, address (street, city, ZIP), and revenue_target of each branch office are maintained.
Leading cause of death in the united states : According to the National Heart Lung and Blood Institute, "COPD is the 3rd leading cause of death in the United States.
Produce a tree adt : Combine the code you have written for Binary Search Trees (BSTs) and Red Black 'Rees (RBTs) in previous labs to produce a tree ADT which can be either a simple BST or a self-balancing RBT.
Determine degree of turbulence in hollywood film industry : Determine the degree of turbulence in the Hollywood film industry. Give reasons for your views. Develop and compare the key factors for success in the following three industries.
Describing a situation affects moral awareness : The type of language used when describing a situation affects moral awareness

Reviews

Write a Review

Database Management System Questions & Answers

  Develop basic tools to expedite use of oracles data

develop basic tools to expedite use of oracles data dictionarygoalsdevelop and demonstrate sql skillsdevelop your

  By using the instructions given by your instructor install

using the instructions provided by your instructor install mysql and connect from netbeans. create a user account that

  Convert this eer diagram to relational database schemas

Show an alternative design using the General notations for the attribute described in Problem 2 that uses only entity types (including weak entity types if needed) and relationship types.

  Patients post cardiac bypass surgery

Monitor Renal Outcomes in patients post cardiac bypass surgery?

  Provide explanation about each of the applied techniques

In the assignment report provide explanation about each of the applied techniques. In your Excel workbook file place the results in separate columns in the corresponding spreadsheet.

  Database implementation in mysql

After receiving 21 different setups, the management of Oak Creek Stadium has decided on the attached ER diagram and instance tables for the development of a database to keep track of its operations.

  Compute the activity rates for the installing floors

Compute the overhead cost, according to the activity-based costing system, of a job that involves installing 3.2 squares - Prepare the first-stage allocation of overhead costs

  Create documentation describing the principles

Create documentation describing the principles and importance of normalization in relation to this project and the process by which this project was normalized.

  Draw the er diagram for the company database

Using ER Assist Tool to draw the ER Diagram for the Company Database. The Requirements were discussed in the class.

  Develop an e-r diagram for the library database

Develop an E-R diagram for the library database. The relation schemas for the library database.

  Construct an er diagram for a hospital

Construct an er diagram for a hospital with a set of patients and a set of medical doctors. associate with each patient a log of various test and examination conducted.convert er diagram into tables

  Discuss iterative design as it relates to databases overall

Discuss iterative design as it relates to databases overall. Determine whether one must design a database iteratively or design the entire database all at once. Provide a rationale for your answer

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