Skip to main content

Show sums of line totals for each invoice.

Task
Instructions
From Resources under Main Menu in Interact 2 go to Assignment 5 Folder
The 'assignments' 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.

Comments

Popular posts from this blog

Starting with this provided code, add the following functionality

1.Starting with this provided code, add the following functionality: Replace hardcoded strings “Zero”, “One”, “Two”, “Three” in the ArrayList based on user typed input (use Scanner or JOptionPane classes). The user will be prompted for the String to be stored in the ArrayList and then hit enter. The user will be able to continue to add items to the ArrayList until they just hit enter without typing anything. Once the user does this (hits enter without typing anything), the program will display all of the elements of the ArrayList, both the index and String values, in a table. It will do this via a single loop making use of an iterator method. 2. Starting with this provided code, add the following functionality: Use a Try/Catch block so that the exception is caught and the program exits a bit more gracefully. Save this file as TryCatch.java. (Be sure to rename the Public Class accordingly.) Starting with the provided code again (without the Try/Catch block), fix the code so that ...

Josie Eskander

  Question 1: Task 1: Report Assume you are Josie Eskander. You are writing in response to techno trading P/L’s advertisement of a new laptop at 20% below normal price. You want information on brand name, availability of service and repairs, delivery times and methods of payment. Write the letter using the seven basic parts of the letter. In the opening paragraph present a clear and courteous request. Secondly write a response from techno trading giving details and proposing the sale. Provide draft of both emails in the space below. Question 2: Task 2: Report In pairs, nominate a good and a bad letter writer. Discuss the key differences. Write a good/bad letter from techno training to Alex Antonov accepting/declining his proposal to invest in the business Question 3: Task 3: Report Write a letter from techno trading p/l to a new client ‘new realities p/l’ urging them to buy techno new virtual reality software. Make a strong argument for the product. Question 4: Task 4: Report Write...

independent variable

Which of the listed variables does a researcher mainly use in his or her approach with intent to establish validity - specifically, construct validity? ·         independent variable ·         confounding variable ·         dependent variable ·         participant variable ·         extraneous variable ·         third variable Instructions: With our engagement in this discussion we will likely touch upon learning objectives/competencies 2.2 and 2.4 as dependent upon the various variable selections and replies. (a) Please briefly define the two concepts (variable type(s) selected from the list and construct validity) using our text by Cozby and Bates (2015) or another credible source. (b) Then, support your view...