Task 6: Find the ID, first name, and last name of each customer for which an invoice was not created on November 15, 2021. Task 13: List the invoice number and invoice date for each invoice created for the customer James Gonzalez. Task 15: List the invoice number and invoice date for each invoice that either was created for James Gonzalez or that contains an invoice line for Wild Bird Food (25lb). TEMPLATE -- Task # 6 SELECT CUSTOMER.CUST_ID, FIRST_NAME, LAST_NAME FROM _____________, _________________ WHERE CUSTOMER.________________ = ______________.CUST_ID AND INVOICES.____________________ <> '2021-11-15'; -- Task # 13 SELECT INVOICE_NUM, INVOICE_DATE FROM ______________ WHERE ____________ IN (SELECT CUST_ID FROM CUSTOMER WHERE _____________ = _______________ AND ____________ = ______________); -- Task # 15 SELECT DISTINCT INVOICES.INVOICE_NUM, INVOICES.INVOICE_DATE FROM INVOICES, INVOICE_LINE, ITEM, CUSTOMER WHERE INVOICES.INVOICE_NUM = INVOICE_LINE.INVOICE_NUM AND INVOICE_LINE.ITEM_ID = ITEM.ITEM_ID AND INVOICES.CUST_ID = CUSTOMER.CUST_ID AND (ITEM._______________ = 'Wild Bird Food (25 lb)' _____ (CUSTOMER.______________________ = 'James' AND CUSTOMER.___________ = 'Gonzalez'));
Task 6: Find the ID, first name, and last name of each customer for which an invoice was not created on November 15, 2021.
Task 13: List the invoice number and invoice date for each invoice created for the customer James Gonzalez.
Task 15: List the invoice number and invoice date for each invoice that either was created for James Gonzalez or that contains an invoice line for Wild Bird Food (25lb).
TEMPLATE
-- Task # 6
SELECT CUSTOMER.CUST_ID, FIRST_NAME, LAST_NAME
FROM _____________, _________________
WHERE CUSTOMER.________________ = ______________.CUST_ID
AND INVOICES.____________________ <> '2021-11-15';
-- Task # 13
SELECT INVOICE_NUM, INVOICE_DATE
FROM ______________
WHERE ____________ IN (SELECT CUST_ID
FROM CUSTOMER
WHERE _____________ = _______________
AND ____________ = ______________);
-- Task # 15
SELECT DISTINCT INVOICES.INVOICE_NUM, INVOICES.INVOICE_DATE
FROM INVOICES, INVOICE_LINE, ITEM, CUSTOMER
WHERE INVOICES.INVOICE_NUM = INVOICE_LINE.INVOICE_NUM
AND INVOICE_LINE.ITEM_ID = ITEM.ITEM_ID
AND INVOICES.CUST_ID = CUSTOMER.CUST_ID
AND (ITEM._______________ = 'Wild Bird Food (25 lb)' _____ (CUSTOMER.______________________ = 'James' AND CUSTOMER.___________ = 'Gonzalez'));



Trending now
This is a popular solution!
Step by step
Solved in 4 steps









