Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

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!)

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M93082768

Have any Question?


Related Questions in DBMS

Sql transactions exercisesconsider table itemnameprice

SQL Transactions Exercises Consider table Item(name,price) where name is a key, and the following two concurrent transactions. T1: Begin Transaction; Update Item Set price = 2*price Where name = 'pencil'; Insert Into Ite ...

Sqlwrite a select statement that returns one column from

SQL Write a SELECT statement that returns one column from the Vendor table named Full Name. Create this column from the VendorContactFName and VendorContactLName columns. Format it as follows: last name, comma, first nam ...

Question we can sort a given set of n numbers by first

Question : We can sort a given set of n numbers by first building a binary search tree containing these numbers (using TREE-INSERT repeatedly to insert the numbers one by one) and then printing the numbers by an inorder ...

You are responsible for keeping track of meal expenses for

You are responsible for keeping track of meal expenses for ten employees while at a business lunch to which your employer has invited you to attend. Write an algorithm that inputs the lunch costs for each the ten employe ...

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 ...

Question a suppose you are a marathon runner that can run a

Question : a) Suppose you are a marathon runner that can run a maximum of n miles on a single bottle of water. You are given a map of your marathon route with all the water stations marked. Design an efficient algorithm ...

Analytic reportpurpose the purpose of this task is to

Analytic Report: Purpose: The purpose of this task is to provide students with practical experience in working in teams to write a Data Analytical report to provide useful insights, pattern and trends in the chosen/given ...

In sql developer onlydeliverables include sql scripts and

In SQL Developer ONLY! Deliverables Include SQL scripts and screenshot of the results: D1. Create the following three user-defined roles that are shown in the table below and assign them the specified permissions for the ...

Need an expert in the fields of system design to handle

Need an expert in the fields of system design to handle this project This is a system analysis and design project, not a research project. Refer to the list of deliverables in the instructions in the assignment to make s ...

Assignment question - write and run sql statements to

Assignment Question - Write and run SQL statements to complete the following tasks Part A - DML 1. Locate the record in the vendor table that does not have a value for the attribute V_STATE 2. Find the customers whose ba ...

  • 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