Explain what is meant by the process of denormalization

Assignment Help Database Management System
Reference no: EM131305300

Relational databases: theory and practice Assignment

ANSWER ALL QUESTIONS

Question 1 - Use the block notes to answer the following questions:

i. Explain what is meant by the process of denormalization and how it is done.

ii. Explain why we may need to use denormalization (i.e. provide the motivation for denormalization)

iii. Explain when it is  a good idea to use normalization.

iv. Give an example of denormalization.

v. Explain the drawbacks of denormalization.

vi. Explain when denormalization should be avoided.

Question 2 - Use the e-library and other resources to answer the following questions:

i. Explain what is meant by extensible relational database design.

ii. Explain what is meant by the "Entity-Attribute-Value (EAV)" approach.

iii. Explain how can the EAV approach be used to implement database extensibility.

iv. Give an example of using the EAV approach to implement a simple relational database with extensibility features.

v. Explain why we may need to use the EAV approach to implement relational database extensibility (i.e. describe the advantages of the EAV approach for implementing relational database extensibility).

vi. Explain why we may not sometimes wish to use the EAV approach to implement relational database extensibility (i.e. describe the disadvantages of using the EAV approach for implementing relational database extensibility).

You must provide at least two references in the Harvard style of referencing, excluding your course materials and Wikipedia.  At least one of the references should be a recent reference (within the last four years).

Question 3 - Develop a conceptual model for the following scenario.  The data model should consist of the usual 5 components: E-R diagram, Entity Types (including entity type identifiers), assumptions, additional constraints, and limitations:

It is desired to develop an online pizza ordering database for a pizza shop.

For each customer, we need to keep a customer id, first name, middle name, last name, title, telephone number and address.

A customer may make zero or more orders.  For each order, we maintain a unique order id, a date, a time, and any special discounts offered on the whole order.

Each order is made by exactly one customer, taken by exactly one employee, delivered by exactly one driver and consists of one or more line-items.

An order cannot contain more than 100 line items.

For each employee, we keep an employee id, a first name, a middle name, a last name, an address, a telephone number and a salary.

An employee can take many orders.

For each driver, we keep the driver id, name, telephone number and hourly salary.

A driver may deliver many orders.

For each Line item, we keep a line number, a quantity, and a sale price.

A line item must be associated with a single order and must also be associated with a single menu item.

A menu item is a main item that can be ordered by itself from the menu.  There are two types of menu items: standard items, like standard specialty pizzas, French fries, salads, drinks, etc. and custom pizzas which you can customize yourself by choosing the crust type, the toppings, and so on.

For each menu item, we keep a menu number, a name, a description, a menu price, and customer special requests.

A menu item can participate in zero or many line items.  Every menu item must be either a standard item or a custom pizza but not both.

For standard items, we keep the menu number, which indicates that the menu item having this menu number is a standard item and the portion size (small, medium or large).

Obviously, a standard item must be associated with a single menu item.

For custom pizzas, we keep pizza-diameter, type of crust and flavor of crust.

A custom pizza must also be associated with a single menu item and can have many toppings up to a maximum of 7 toppings.

For each topping, we keep a type, pizza-diameter and price.  A custom pizza can only be supplied with a topping priced for the same diameter.

A toping may be used by many custom pizzas.

Note: you should expect about 10 entity types, 9 relationship types, 45 attributes, 8 additional constraints, 4 assumptions and 2 limitations in the CDM for this application.

Question 4 -

i. Convert the following relational representation back into a CDM using three relationships and four entity types.  Include the ER diagram, the entity types and the additional constraint sections only.

ii. Consider the schema below to answer the following questions:

R (A, B, C, D, E, F, G)

fd1: (A, B) → C, D, E, F, G

fd2: C → A, B, D, E, F, G

fd3: D → E

fd4: F → G

a. Show that relation R is in 2NF and not in 3NF explaining why.

b. Normalize the relation R into a set of 3NF relations. Show the primary keys.

c. Further normalize the results of the previous step into a set of BCNF relations if not already in BCNF and show the primary keys.

Question 5 - You will need to refer to the University database to answer this question. Write SQL queries to perform the following operations. In each case show the SQL statement you used and the actual output from your DBMS.  You are required to show the actual output of your queries.

a) List patient details for all male patients in ward number 'w5'.

b) List the ward numbers of all occupied wards with no duplicates.

c) List the patient ids, the start date and reason for treatment for all patients undergoing a treatment for a reason that contains the word 'temperature' or the word 'fever' and who started their treatment after 5 December 2006.

d) List the names of all specialists along with their specialisms.

e) Get the ward numbers and ward names for all wards that have no patients.

f) Write a query to get the number of distinct patients undergoing each type of treatment (i.e. reason for treatment) in the database, ordered alphabetically by the reason for the treatment.

g) Write a query to get the names of all patients receiving a prescription whose daily dosage is higher than the average daily dosage of all prescriptions using the same drug.

h) Write a query to retrieve the ward number and average weight of patients for all wards having more than three patients, excluding ward w5.

Attachment:- Assignment.rar

Reference no: EM131305300

Questions Cloud

What did you learn about cognitive dissonance : What did you learn about conformity?What did you learn about obedience and compliance?Why do good people do bad things?What did you learn about the bystander effect?What did you learn about cognitive dissonance?
Describe an independent-samples t-test : As you continue to review SPSS, statistics are important in assessing development and comparisons between groups (means). In SPSS, two group means can be compared to assess differences. You will watch the tutorial on how to do an SPSS independent-..
Why might bubbles be difficult to identify : Former Federal Reserve Chairman Alan Greenspan once argued that it is very difficult to identify bubbles until after they pop. What is a bubble, and why might bubbles be difficult to identify?
What is the bottom of the market : What is "the bottom of the market"?- Is selling stocks at the bottom of the market a good idea or a bad idea? Briefly explain.
Explain what is meant by the process of denormalization : M359 Relational databases: theory and practice Assignment. Explain what is meant by the process of denormalization and how it is done. Explain why we may need to use denormalization (i.e. provide the motivation for denormalization)
Comment on any strong patterns trends or fluctuations : Select "Historical Prices" and download the monthly data for the Dow back to 1929.- Graph these data using an Excel spreadsheet and comment on any strong patterns, trends, or fluctuations you see.
How hypothesis could be empirically tested : In a learning course, each student is given a laboratory rat to train during the semester. Some students are very comfortable handling and working with their rats, and others are very uncomfortable.
Why would investors buy the stock of a firm : Find the dividend per share for Microsoft, Apple and Coca-Cola.- Why would investors buy the stock of a firm that does not pay a dividend?
Goal of international decade for natural disaster reduction : What are the four important issues influencing the response process that are listed in this chapter? Describe each.

Reviews

len1305300

12/8/2016 4:13:12 AM

You are required to use the course software (MySQL) to answer all SQL questions. It is not permitted to use other SQL environments for this TMA. The TMA requires that you demonstrate an understanding of course concepts an techniques, and an ability to apply these to sample problems. Your tutor will be following a detailed marking scheme, but he or she will particularly look for the following: Using course concepts and terminology and Using the e-library and other external sources.

Write a Review

Database Management System Questions & Answers

  Prepare a database and will create a user interface for it

In this assignment you will be given a database and will create a user interface for it using the best practices that you have learned in the course.

  Explain the role of the registry in rmi

Consider matrix multiplication as a remote operation. Suppose the local machine does the I/O and a remote server does the multiplication

  Describe some typical pairs of entities

Describe some typical pairs of entities that you think might be common in business, and describe their relationships, whether many-to-many, one-to-many, many-to-one, or one-to-one. Explain why you think that a particular relationship applies to th..

  Explain why data flow diagrams are developed in a hierarchy

Explain why data flow diagrams are developed in a hierarchy? What are the names of some levels in the hierarchy?

  Construct a relational schema for the er-diagram

Construct a relational schema for the ER-diagram. Make sure that you correctly translate Specialization and Many-to-Many relationships. Please follow carefully the following guidelines when you ?nish this question.

  How does a query language like sql work

What kinds of databases track relationships? Give a brief description and the advantages of at least three. How does a query language like SQL work? Give brief descriptions of commands, parameters, and record searches.

  Write sql statements to create the corresponding relations

Write SQL statements to create the corresponding relations to the ER diagram you designed for Exercise 2.8. If your translation cannot capture any constraints in the ER diagram, explain why.

  Describe the basic features of the rdb model

Describe the basic features of the RDB model and discuss their importance to the end-user and the designer.

  Monitor renal outcomes in patients post cardiac bypass

monitor renal outcomes in patients post cardiac bypass surgery?want to identify factors which influence aki post

  Include what database applications are used

Conclude by proposing improvements. For large organizations, restrict the scope to the department in which you work

  Build relatively well normalized relational database

If we added hats in 3 sizes and 3 colors and 3 styles, discuss briefly how many additional tables you 'uld add to the design.

  Define the concept of reduction factor

Summarize briefly how to make use of indexes such as B+ tree or a hash indexes in selection, projection, and join operations?

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