List the names of the vendors who provided products

Assignment Help Database Management System
Reference no: EM131607366

Assessment: Query and update databases using SQL

Task Instructions - The 'assignment' database file will be made available on Interact2 Resources under Assessments folder.

Use MySQL software to complete this assignment.

Follow the instructions on 'how to import a database into MySQL': your teacher will also demonstrate this during class.

Use this (imported) database 'assignment5' to complete your assignment using MySQL.

A choice of another software may be possible after consultation with your teacher.

Write SQL statements to answer the following questions from the 'assignment5' database file.

1. Show sums of line totals for each invoice.

2. Locate the record in the vendor table that does not have a value for the attribute V_STATE

3. Find the customers whose balance is greater than 200 but less than 300.

4. Using natural join and having, list the customers whose invoice total is greater than 200

5. Show the names of the customers for whom we have invoices.

6. Using natural join and having, list the customers whose invoice total is greater than the average

7. Show the names of the customers for whom we DO NOT have invoices.

8. Using natural join and having, list the customers whose invoice total is the maximum. 

9. List the first name and last name of the customers and how many times a customer has generated an invoice.

10. List all purchases by customer 10018.

11. List the names of the vendors who provided products. 

12. Using inner join, list the details of the products which sold more than 10 units.

You are required to submit:

1. The SQL statements for each query, which should be copied from your MySQL Workbench and pasted into your submission file. The screenshots of the results of the SQL statements which are to be copied from your MySQL Workbench and pasted into your submission file immediately after you execute the SQL query.

2. The screenshots of the results of the SQL statements which are to be copied from your SQLite3 Command Line and pasted into your submission file immediately after you execute the SQL query. If you used an output file please submit only the output file.

Rationale -

This assessment aligns with the following subject outcomes: be able to critically analyse and modify an existing database design to meet new business requirements;

Reference no: EM131607366

Questions Cloud

Compare gilgamesh and odysseus : Compare Gilgamesh and Odysseus as to their heroic qualities, noting similarities and differences, using specific examples from the epics
Discuss about the two species of grass in the meadow : The density function and cumulative distribution function of heights of grass plants in a meadow are in Figures 8.95 and 8.96, respectively.
Identify the one environment that best describes you : Identify the one environment that best describes you. Interpret your results using the descriptions of personality types on page 57.
Write a paper that integrates what you have learned : Write a paper that integrates what you have learned throughout this course, and describe and discuss 4-6 important competencies .
List the names of the vendors who provided products : List the names of the vendors who provided products. Find the customers whose balance is greater than 200 but less than 300
Employee motivation and recognition programs in the public : Employee motivation and recognition programs in the public sector workplace.
Problem related to the telephone company : After measuring the duration of many telephone calls, the telephone company found their data was well approximated by the density function p(x) = 0.4e-0.4x.
Advancing a resolution to the ethical dilemmas : Is the practice of a student paying for someone to write an assignment and then submitting it as their own work an ethical issue?
Discuss stroke use evidence-based research : Identify ways to enhance or optimize health and ways to prevent Heart Disease and Stroke use evidence-based research

Reviews

len1607366

8/21/2017 7:07:00 AM

The SQL statements for each query, which should be copied from your MySQL Workbench and pasted into your submission file. The screenshots of the results of the SQL statements which are to be copied from your MySQL Workbench and pasted into your submission file immediately after you execute the SQL query. The screenshots of the results of the SQL statements which are to be copied from your SQLite3 Command Line and pasted into your submission file immediately after you execute the SQL query. If you used an output file please submit only the output file.

len1607366

8/21/2017 7:06:55 AM

SQL syntax returns all attributes that meet the business requirement from the tables that hold the data and applies the correct restrictions to retrieve the required information. Requirements - Either submit your assignment as a PDF or a Word document. Don't use any other file formats. Please include your student ID, name and subject code in your submission. Submission Method: Turnitin. Details will be provided by the lecturer during the session.

Write a Review

Database Management System Questions & Answers

  Error code in unning this program in raptor

I need an input statement that would allow the user to input any day of the week for steps walked and be able to input any number for step walked on any day of the week.

  Database modeling and normalization

Database Modeling and Normalization

  Explain the role of the registry in rmi

Consider matrix multiplication as a remote operation. Suppose the local machine does the I/O and a remote server does the multiplication

  How linked data can be used in semantic web applications

Explain how linked data can be used in semantic web applications and give suggestions forhow linked data might be used with the representations you have created

  Find the entities from the functional requirements

Find the entities from the functional requirements. Entities can come from Nouns in the text, they may also come from forms, reports and legacy code.

  Optimizing sql server query performance how to optimizing

how to optimizing sql server query performance? when optimizing your database server you need to tune the performance

  Three level architecture of database

Three level architecture of database in detail

  List whether the index matches the given selection condition

Athabasca University has about 32,000 students between the ages of 17 to 60. Consider the AU student relation with the following schema.

  Explain the average length of stay per room type

What is the average length of stay per room type. What is the average number of visitor per room type. What is the base income per room (i.e., length of visit multiplied by the daily rate) during a specified period of time

  Modifying a database design in visio

Modifying a Database Design in Visio- This assignment contains two (2) Sections: Visio Diagram and Design Summary. You must submit both sections as separate files in order to complete this assignment

  Develop some reports and queries for running the business

The database includes fields for record number, store identification number, sales region, item number, item description, unit price, units sold, and the weekly sales period when the sales were made.

  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

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