Question
From Resources under Main Menu in Interact 2 go to Assignment 5 Folder Copy sqlite3.exe file from the Assignment 5 Folder into a folder in
From Resources under Main Menu in Interact 2 go to Assignment 5 Folder
Copy sqlite3.exe file from the Assignment 5 Folder into a folder in your machine
Copy a5.txt from the Assignment 5 Folder into the folder in your machine where your SQLite file is located
From the SQLite, Command Prompt execute the a5.txt script. To do this, at the SQLite Command Line type .read a5.txt [to create the tables you will use to answer this assignments 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
Show sums of line units for each invoice.
Show the details of the products that do not have a value for the attribute v_code.
Show the details of the invoices whose subtotal is greater than 25 but less than 75.
Show the details of the invoice who has the minimum subtotal.
Show the codes and names of the vendors who supplied products.
Using EXCEPT show the codes of the vendors who did not supply any products.
Using NOT IN show the codes and names of the vendors who did not supply any products.
List the 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.
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.
List all purchases by customer 10011.
Show the details of the employees who are located in area code 615.
Using inner join, list the details of the products whose line price is greater than 100.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started