ITC556 | Assessment 4 Query Databases Using SQL | Database

Home Recent Questions ITC556 | Assessment 4 Query Databases Using SQL | Database

Task: Complex SQL Queries

NOTES

• This assignment requires you to use SQLite to complete the tasks listed below.
• For guidance on how to install SQLite, watch this short YouTube video:
• For guidance on how to create tables using SQLite, watch this short
• Typing the SQL statements or the results is NOT acceptable.

Instructions

From Resources under Main Menu in Interact 2 go to Assignment 4 Folder

Copy sqlite3.exe file from the Assignment 4 Folder into a folder in your machine

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

From the SQLite Command Prompt execute the a4.txt script. To do this, at the SQLite Command Line type .read a4.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

Write and run SQL statements to complete the following tasks (Each Query : 1.5 (0.75 query+ 0.75 for screenshot) Marks)

1. Show sums of line units for each invoice.
2. Show the details of the products that do not have a value for the attribute v_code.
3. Show the details of the invoices whose subtotal is greater than 24 but less than 76.
4. Show the details of the invoice who has the minimum subtotal.
5.  Show the codes and names of the vendors who supplied products.
6. Using EXCEPT show the codes of the vendors who did not supply any products.
7. Using ‘NOT IN’ show the codes and names of the vendors who did not supply any products.
8. List the names and codes of vendors and the number of products each vendor has supplied, i.e. vendor XXX has supplied xxx products, and vendor YYY has supplied yyy products etc.
9.  Show the details of the employees who are located in area code 615.
10. Using inner join, list the details of the products whose line price is greater than 99.

Search Here

Latest Reviews

  • Kannon
    13 Jul, 2019

    I asked for essay help from Assignment Help 4 Me and I am happy that the essay writers completed my task on time. The prices they asked for are worth in comparison to the services rendered.

  • Liam
    13 Jul, 2019

    Assignment Help 4 Me is the best help provider. I took assistance to get my essay completed and I am glad that the writers delivered the quality content as they promised within the time committed.

  • Silas
    12 Jul, 2019

    Accounting is a very interesting subject but when it comes to assignment writing, I feel hard to get through the same. But, since the assignments have to be completed somehow, I preferred to avail online help from Assignment Help 4 Me. All thanks to them that they helped me complete my work on time at reasonable prices.

View All Reviews

Facebook

Assignment Help 4 Me