Answered You can hire a professional tutor to get the answer.

QUESTION

Write and run SQL statements to complete the following: Part A - DML List the record/s in the vendor table that do not have a value for the attribute...

Write and run SQL statements to complete the following:

Part A - DML

  1. List the record/s in the vendor table that do not have a value for the attribute V_STATE.
  2. Find the customers whose balance is greater than $250 but less than $400.
  3. Create a query based on invoice table to show a 15% increase on tax.
  4. Show the names of the customers for whom we have generated any invoices.
  5. Show the CUS_CODE of the customers for whom we DID NOT generate invoices.
  6. Show thenames of the customers for whom we DID NOT generate invoices.
  7. Find out how many times a customer generated an invoice – make sure the counted column heading reads “Invoices_generated”.
  8. List the names of the customers and how many times a customer generated an invoice – make sure the counted column heading reads “N_Of_Invoices” .
  9. Find the customers whose last name is either Dunne, Orlando or Brown and live in area 615, sort in alphabetical order by the CUS_LNAME.

Part B – DDL

  1. Add a new attribute called ‘email_address’ to ‘emp’ table with data type and length ‘VARCHAR-20’.
  2. Add a new row/record to the `customer` table to include your actual student ID in the CUS_CODE, your lastname as the CUS_LNAME` and your firstname as CUS_FNAME. Add any other details of your choice in all the other fields.
  3. Delete all the vendors in the FL state.

You are required to submit:

  1. The SQL statements for each query, which should be copied from your SQLite3 Command Line and pasted into your submission file
  2. The screenshots of the results of the SQL statements which are to be copied from your MySQL Workbench screen or SQLite3 Command Line and pasted into your submission file immediately after you execute the SQL query. 
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question