Ask DBMS Expert


Home >> DBMS

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.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91596058
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in DBMS

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

You are in a real estate business renting apartments to

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL. The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, Propert ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As