Ask DBMS Expert


Home >> DBMS

DATABASE MANAGEMENT SYSTEMS 

COMPUTER PROJECT

Ben & Jerry's, located in Waterbury, Vermont, produces 190,000 pints of ice cream and frozen yogurt daily to ship to over 50,000 grocery stores in the united states and 12 other countries. Every single pint is meticulously tracked, first by being entered into an ORACLE database with the information carefully organized. Ben & Jerry uses a sophisticated data-mining tool set from a company called Business Objects to track customer tastes.

Ben & Jerry's has hired you to track their expenses and Ms. Gifford, the MIS director, has provided you with following information:

They currently have three tables ICECREM, INGREDIENT and RECIPE tables with following attributes:

ICECREAM (Ice_cream_ID, Ice_cream_flavor, price, year_first_offered, sellling _status)

INGREDIENT( Ingredient_ID, Ingredient_name, cost)

RECIPE (Ice_cream_ID, ingredient_ID, quantity_used)

WHERE:

Ice_cream_ID is the internal Id given to an ice cream.

Ingredient_ID is the internal Id given to an ingredient selling_staus is an internal control which keeps track of ice cream sales as high, low, medium or none. If no figures are available this field has no value.

Year_first_offered is the year that ice cream flavor was first offered quantity_used is the amount of ingredient used in one pint of ice cream.

Following sample data is available:

ICECREAM table

Ice_cream_ID

Ice_cream_Flavor

Price per scoop

year_first offered

Selling_status

101

Berry

$4

2010

 

201

Vanilla

$2

1981

high

211

Cherry

$3

1976

low

311

Chocolate

$3

1981

high

321

Strawberry

$2

1961

high

405

Pistachio

$2.50

2012

low

406

Almond

$3

2010

 

407

Blackberry

$4

2015

 

510

Mint

$1.50

1998

medium

520

Cookie

$2

2001

medium

525

Green Tea

$4.50

2012

low

540

Raspberry

$3

2012

 

545

Banana

$1.50

1992

medium

550

Pineapple

$2

2001

high

560

coconut

$3.25

2012

medium

RECIPE Table

Ice_cream_ID

Ingredient_ID

Quantity used/pint

101

1000

30

540

1000

75

545

1000

55

101

1100

40

201

1100

45

407

1200

25

101

1200

20

201

1200

45

311

1200

40

321

1300

35

101

1300

80

540

1300

50

545

1400

15

405

1400

10

406

1400

27.5

201

1500

10

540

1500

5.5

211

1500

60

101

1700

5

520

1700

10

INGREDIENT

Ingredient_ID

Ingredient_name

Cost/pint

1000

cocoa

$125

1100

Vanilla beans

$30

1200

Tea leaves

$35

1300

Raw almonds

$215

1400

Mint Leaves

$42

1500

Sugar

$5

1600

Cream

$25

1700

Pistachio

$45

1710

raspberry

$12

You are to do the following using ORACLE:

PARTS A, B and C

? create tables ICECREAM, INGREDIENT and RECIPE with appropriate primary and foreign keys.

(Submit create statement with appropriate PK, FKs)

? load the data
? Provide table structure and content

PART D:

Answer the following queries in SQL:

1. What are the names of all ice creams?

2. Which ice cream flavored were offered before 1999

3. How many flavored were offered before 1999.

4. Give the count of ingredients used in ice cream 101.

5. What are the ice cream flavors that use ingredient 1100?

6. What are the ingredients used in ice creams 201 or 540?

7. How many flavors were introduced each year?

8. How many ingredients have an ‘a' and an ‘l' in their names in that order?

9. How many ingredients are in each ice cream flavor?

10. Give the names of ice creams that do not have selling status.

11. Give the average price of vanilla, almond and Pistachio ice creams.

12. Give the count of ice creams by their selling status.

13. Add an ice cream peanut butter id number 625 and uses ingredients 1500 and 1600.

PART E

Relationship among entities

You are to submit the following:

1. Part A:
a. Create ORACLE SQL Statements with appropriate PK and FKs for each table (can submit in word: with table create output from ORACLE

2. Part B:

a. Write queries to provide table structure and queries output

3. Part C:

a. Write queries to provide table contents and queries output

4. Part D:

a. Each query/and its output in SQL (1 thru 13) and its result

5. Part E:

a. Draw the relationship (1:1 or 1:m or m:n) between the following:

i. ICECREAM and RECIPE

ii. INGREDIENT and RECIPE

And justify the relationship you select

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91646591
  • Price:- $60

Guranteed 36 Hours Delivery, In Price:- $60

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