Question: 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
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
