Skip to main content

List all the record/s in the vendor table that do not have a value for the attribute V_STATE.

Task 
Write SQL statements to answer the following questions from the attached database: 
1. List all 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 in a new column. 
4. Show the first and last names of the customers for whom we have issued invoices. 
5. Show the CUS_CODE of the customers for whom we DO NOT have invoices. 
6. Show the names of the customers for whom we DO NOT have 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,. 
10. Add a new attribute called ‘email_address’ to ‘emp’ table and use data type and length ‘VARCHAR-20’. 
11. 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 in the other fields. 
12. Delete all the vendors in the FL state. 
Instructions: 
After answering each question correctly, copy and paste the SQL code into a Word document for each question. 
I will need test each question in my own SQL program to make sure they are correct, as I need to take screenshots of the code along with the result. If you modify the database for any of the question, please return the modified database

Logo

Get 100% Original papers from writing experts.

Comments

Popular posts from this blog

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...

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 ...

Why was this movie important to hollywood? What was the feeling of it, the colors, techniques, theme, director, style, music, anything! What was special about Alfred Hitchcock and this film?

  Directions For this assignment, you will need to choose a topic or person from any of the various eras, movements or decades that we've discussed this semester and do a presentation on them using any media format you choose. (IM CHOOSING THE MOVIE PSYCHO-    Why was this movie important to hollywood? What was the feeling of it, the colors, techniques, theme, director, style, music, anything!  What was special about Alfred Hitchcock and this film? The subject matter doesn't have to be limited to an actor, director or filmmaker, but  the topic of your presentation could be on the inventions of any of the equipment, editing or filming techniques that you've learned about.  Basically, you can pick an area to cover and do your presentation on that.  The point is that you take a deeper dive into the subject by exploring information about it that may not have been  covered in this course.  It does have to...