Multiple Choice
What does the following SQL query do? SELECT INVOICE_NUM FROM INVOICE_LINE WHERE PROD_CODE IN (SELECT PROD_CODE FROM PRODUCTS WHERE (PROD_TYPE = 'Cupcake') ) ;
A) cause an error because it includes more than one SELECT command
B) lists all rows from the invoice line table that contain a "Cupcake" type product
C) lists the invoice numbers for invoices containing line items with a "Cupcake" product type
D) lists the product codes for all "Cupcake" type products that appear on invoices
Correct Answer:

Verified
Correct Answer:
Verified
Q24: Which function determines the number of rows
Q25: In MySQL, you can use an asterisk
Q26: Mallory would like to display the rows
Q27: When a subquery is used in a
Q28: All SELECT statements require a WHERE clause.
Q30: It is possible to place one query
Q31: When you need to sort data on
Q32: What SQL command do you use to
Q33: Which operator finds rows that do not
Q34: The GROUP BY clause sorts the data