Oracle
1Z0-082 · Question #129
Examine the description of the PRODUCT_STATUS table: The status column contains the values 'in stock' or 'out of stock' for each row. Which two queries will execute successfully?
The correct answer is B. SELECT prod_id II q'l's not available)' FROM product_status WHERE status = 'OUT OF STOCK'; D. SELECT prod_id I I q' (*s not available)' "CURRENT AVAILABILITY" FROM product_status. See the full explanation below for the reasoning.
SQL and PL/SQL
Question
Examine the description of the PRODUCT_STATUS table:
The status column contains the values 'in stock' or 'out of stock' for each row. Which two queries will execute successfully?
Options
- ASELECT prod_id Il q"'s not available" FROM product_status where status = 'OUT OF STOCK';
- BSELECT prod_id II q'l's not available)' FROM product_status WHERE status = 'OUT OF STOCK';
- CSELECT prod_id "CURRENT AVAILABILITY" II q'<'s not available)' FROM product_status
- DSELECT prod_id I I q' (*s not available)' "CURRENT AVAILABILITY" FROM product_status
- ESELECT prod_id I I q' ('s not available) ?'CURRENT AVAILABILITY' FROM product_status
- FSELECT prod_id q's not available" FROM product_status WHERE status = 'OUT OF STOCK*;
How the community answered
(34 responses)- A3% (1)
- B79% (27)
- C3% (1)
- E9% (3)
- F6% (2)
Topics
#q-quote operator#string literals#SQL syntax#string concatenation
Community Discussion
No community discussion yet for this question.