Draw an er diagram to represent the database

Assignment Help Other Subject
Reference no: EM132195761

Objectives:

• Learn to implement advance SQL statements
• To practise joining tables for retrieving data
• To practise the use of relational set operators to merge data

Activities

Task

1) Create a new database called Food_Beverages and import the fileFood_Beverages.sql.

2) Draw an ER diagram to represent thedatabase.

3) Use this new database to implement the SQL statements to complete the following:

a) In a following SELECT statement, how many rows will there be in the output? Explain how you have derived at this number. Describe how you can confirm the number iscorrect.

SELECT P.ProductID, C.CategoryID FROM Product AS P, Category AS C;

b) Are all the rows in the output of (a) meaningful? How can you modify that SELECT statement so that the rows in the two tables are logically joined and every row in the output ismeaningful?

c) Display the ID and the shipped date of every order along with the ID and name of the company in charge of shippingit.

d) Show the name and the quantity of the product(s) being listed in eachorder.

e) List the full name and the title of the person which each employee reports to. The ID and last name of the employee should be included in theoutput.

f) Display the ID and contact person of the supplier of the discontinued products. The ID of the product and category ID it belongs to should be included in theoutput.

g) Show the average unit price of the products in each category. The name of each category should be included in theoutput.

h) List the name and title of every customer contact person from Berlin, followed by the full name and title of the employees based in London. The city should be included in the output. (hint: use a relational setoperator)

i) Show the orders which have more than 5 products listed in them? The Order ID and the number of products list in it should be in theoutput.

j) What is the largest discount given to a product beingordered?

Reference no: EM132195761

Questions Cloud

Strategy important to firm in twenty-first century landscape : What is the definition of competitive strategy, and why is this strategy important to firms in the twenty-first century landscape?
Create a memo using memo template : Revise the program to reflect the following changes: Use a for loop to prompt the student for the price of each book based upon the number of classes.
Describe the search processes you implemented : Describe the search processes you implemented (including search words, and databases you searched), for obtaining the papers for the SLP assignment.
What are the advantages of using narrative text : In an essay of 1,250-1,500 words, discuss and present the following: What are the advantages of using narrative text
Draw an er diagram to represent the database : Create a new database - Draw an ER diagram to represent the database - In a following SELECT statement, how many rows will there be in the output?
Interpretation of the coefficient of x 1be : Suppose a multiple regression model is given by y =1.61x 1+5.58 x2 +30.48 What would an interpretation of the coefficient of x 1be?
What is the purpose of the sopa and pipa : CPSC 311 As an industry insider, look at both acts and think about the benefits and the drawbacks. In a research paper, cover the following questions.
Adults rated the effectiveness of advertisements : In a? study, a random sample of 20 adults rated the effectiveness of advertisements. Each adult rated an advertisement that lasted 30 or 60 seconds.
How would you respond to this observation : The problem with risk analysis is that it is possible to imagine virtually anything going wrong on a project.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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