Multiple Choice
Nina is writing a MySQL query to list the descriptions of items in the CUPCAKES table, which are identified by PROD_ID values. The ORDER_LINE table includes product and quantity information from bakery orders, which are identified by ORDER_NUM values. What can she add to the following query to limit the list to descriptions of cupcakes purchased through order 342? SELECT DESCRIPTION FROM CUPCAKES WHERE
A) PROD_ID IN(ORDER_LINE WHERE(ORDER_NUM = '342') ) ;
B) EXISTS (PROD_ID WHERE (ORDER_LINE.ORDER_NUM = '342') ) ;
C) PROD_ID IN(SELECT PROD_ID FROM ORDER_LINE WHERE(ORDER_NUM = '342') ) ;
D) PROD_ID EXISTS(SELECT PROD_ID FROM ORDER_LINE WHERE(ORDER_NUM = '342') ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q2: What is the term for the letter
Q3: To create a condition that is true
Q4: What is the benefit of using an
Q5: You can use the EXISTS operator to
Q6: In a nested query, the outer query
Q8: When using a DBMS without an optimizer,
Q9: Which element belongs in the blank if
Q10: What steps should you take to construct
Q11: You can use the ALL and ANY
Q12: To retrieve data from multiple tables in