Why there are data redundancy

Assignment Help Database Management System
Reference no: EM132095297

Please help me with this. Taking an SQL relational data bases course with Oracle, and having trouble. Any help is greatly appreicated! You will upvote clear helpful answer, Thanks!

1.  Consider a relational database schema design for a take-out restaurant (as a mini world)

The basic user requirements are the following. You can add more assumptions or requirements to either complicate or simplify the problem.

Menu should list all dishes available for customers to order. Each dish should be listed with a unique name and one price.

Order should be created whenever a customer made an order.

Payment information should be maintained whenever the money is paid. The payment should show to show the order id, cashier id, amount, date etc.

You can use your imagination to figure out what kinds attributes are useful for each essential entity set and figure out the relationship between or among entity sets.

To figure out what attributes you should capture for the database, think about how to answer questions like the ones listed here ( you can have more reasonable questions to help you figure out what need to be captured.)

  • Who (in terms of order iD, since you don't track names) bought a meat lover pizza on Jan. 23, 2006?
  • Who is the cashier to collect the money for order 001?
  • What dishes has a customer (in terms of order iD) ordered for order 10001?
  • How much money has been paid for order 10002?
  • What are the dishes for order 001?

Steps to go through

E-R diagram (how to draw ER diagram, ) Submit a print out.

Table designs or relation schema = relation name + attributes, in order (+ types of attributes). Example: Instructor(name: string, ID: number). ID is underscored because it is supposed to be the primary key for the table. Submit a print out (see slides 16-1 for an example)

ORACLE SQL command to create those tables.  submit scripts

For each table, you should provide at least 4 sample records could be more to illustrate the idea (tuples). submit scripts

2.  point out any problem that the following database design has? (10)

Ssn

Name

Coursed

Course name

instructor

8766

John

109

C language

James

8766

John

242

Database

Stephen

1334

Bill

242

Database

Stephen

Hint 1:

Show

why there are data redundancy?

why there are delete anomaly?

Why there are update anomaly?

Why there are insert anomaly?

Hint 2: See notes of recent lecture. lecture 17 (data anomalies)

3. Can you figure out a better design for the information stored in the above table using ERD approach? Justify your design.

(It is possible to figure out a good database design without even going through ERD, because this problem is simple enough; however, for a large scale database, analysis at higher conceptual level such as ER analysis is usually a must. Therefore, a direct result without going through ERD and mapping is not a complete solution!)

Reference no: EM132095297

Questions Cloud

Distinguish between the efficiency and effectiveness : Give an example to distinguish between the "Efficiency" and "Effectiveness" of a software application.
Analyze the bookstores current system : Analyze the bookstore's current system by drawing a context level DFD. Show the external entities and the data flows into and out of the system.
Write a c program that creates a structure named student : Write a C program that creates a structure named student with three members (name, last name and id).
What term is used to describe a type of communication : Which wireless technology enables low-power wide-area networks (LPWANs) for devices to communicate with other devices?
Why there are data redundancy : The basic user requirements are the following. You can add more assumptions or requirements to either complicate or simplify the problem.
What makes it projects different from other types of project : What makes IT projects different from other types of project? How should project managers adjust to these differences? Justify your response.
What is database recovery : What is Database recovery? Can The techniques for backup and recovery be used for disaster recovery?
Explain how nasa engineers were not properly trained : A fight against pollution and resource depletion is best described as the central concern of which of the following?
Find the mean and standard deviation of a number of data : Write a program, using C#, that will find the mean and standard deviation of a number of data points.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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