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

  Complete a financial analysis and assessment of a company

It will require you to complete a full financial analysis and assessment of a company listed on the Australian Stock Exchange. You may select any company listed on the Australian Stock Exchange EXCEPT Telstra and TOLL

  Prepare a recommendation report on given case

WR227 Recommendation Report Assignment. INSTRUCTIONS: Structure a recommendation report based upon the following information. Use an informal report memo format (2-3 pages) but include headings and highlighting icons as needed

  Identifying truth or fiction

Identifying Truth or Fiction

  Write a opening statement to investigate a report

Write a opening statement to investigate a report.

  Explain the five domains of personality

To prepare for this discussion, please read Chapter 9 of your textbook. In addition, complete the International Personality Item Pool Representation of the NEO.

  Discuss what are the uses of performance appraisals

What are the various raining and development delivery systems, What are the uses of performance appraisals

  Dubois and washington concept of progress

DuBois and Washington concept of progress has one proven to be more effective than another

  Outline the purpose and role of each tool/technology

Emphasize if each of the elements outlined below will affect border security domestically and internationally

  The medication card that describes the therapeutic actions

The medication card that describes the therapeutic actions, indications, pharmacokinetics, contraindications

  Describe the market niche you want to fill

What research do you recommend in order to provide the information you need? What research method(s) would you use to get the information you need? Will it involve secondary data and research? Primary research such as interviews, focus groups and ..

  Aprils attorney informs her that theyve been served with

1. dougs complaint asks for an injunction. which of the following is true?a. doug has suffered great harm.b. doug

  Brief summary of the content of the paper

Topic: INCS 741 Cryptography. Select a cryptography paper of your choice and write a 3-page report discussing the main results in the paper

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