Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use SQL Workbench. Module 5 KimTay Pet Supplies. 2. For each invoice placed on November 15, 2021, list the invoice number along with the ID,

Use SQL Workbench. Module 5 KimTay Pet Supplies.

2. For each invoice placed on November 15, 2021, list the invoice number along with the ID, first name, and last name of the customer for which the invoice was created.

4. Use the IN operator to find the ID, first name, and last name of each customer for which as invoice was created on November 15, 2021.

6. Find the ID, first name, and last name of each customer for which an invoice was not created on November 15, 2021.

8. Order the rows by category and then by invoice number

10. Do NOT use a subquery to find the Sales Rep ID, first name, and last name of each sales rep who represents at least one customer with a credit limit of $500. List each sales rep only once in the results.

12. List the item ID, description, and category for each pair of items that are in the same category. (For example, one such pair would be item FS42 and item PF19, because the category for both items is FSH.)

14. List the invoice number and invoice date for each invoice that contains an invoice line for a Wild Bird Food (25 lb).

16. List the invoice number and invoice data for each invoice that was created for James Gonzalez and that contains an invoice line for Wild Bird Food (25 lb).

18. List the item ID, description, unit price, and category for each item that has a unit price greater than the unit price of every item in category CAT. Use either the ALL or ANY operator in your query. (Hint: Make sure you select the correct operator.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

Describe important components of self-regulated learning.

Answered: 1 week ago

Question

5-8 What are the advantages and disadvantages of the BYOD movement?

Answered: 1 week ago