Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Task: Complex SQL QueriesInstructions From Resources under Main Menu in Interact 2 go to Assignment 4 Folder If you are using sqlite, copy sqlite3

Task: Complex SQL QueriesInstructions From Resources under Main Menu in Interact 2 go to Assignment 4 Folder If you are using sqlite, copy sqlite3

Computer Science

Task: Complex SQL QueriesInstructions From Resources under Main Menu in Interact 2 go to Assignment 4 Folder If you are using sqlite, copy sqlite3.exe file from the Assignment 4 Folder into a folder in your machine

 

Copy Ass4.txt from the Assignment 4 link into the folder in your machine where your SQLite file is located

 

From the SQLite Command Prompt execute the Ass4.txt script. For this, at the SQLite Command Line type .read Ass4.txt [to create the tables you will use to answer this assignment's questions]

 

At the SQLite Command Line type .headers on

 

At the SQLite Command Line type .mode column

run SQL statements to complete the following tasks (Each Query : 1.5 (1 query + 0.5 for screenshot) Marks)

  1. Show the details of the invoice who has the minimum and maximum subtotal.
  2. Show the details of the invoices whose subtotal is greater than 25 but less than 75.
  3. Using EXCEPT show the codes of the vendors who did not supply any products. 
  4. Show the details of the employees who are located in area code 615. 
  5. Show the details of the products that do not have a value for the attribute v_code.
  6. Using inner join, list the details of the products whose line price is greater than 100. 
  7. List the names and codes of vendors and the number of products each vendor has supplied, i.e. vendor AAA has supplied xxx products, and vendor BBB has supplied yyy products etc.
  8. List all purchases by customer 10011.
  9. Using 'NOT IN' show the codes and names of the vendors who did not supply any products. 
  10. Show the codes and names of the vendors who supplied products.

Assignment of database system kindly provide solution

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE