QuestionQ135

VerifiedRestricting and Sorting Data

Review the description of the PRODUCT_STATUS table:

Question Image

For every row, the STATUS column contains either 'IN STOCK' or 'OUT OF STOCK'.

Which two queries execute successfully?

Choose two
Explanation

Oracle alternative quoting uses q'...' with a valid delimiter; parentheses must be paired when ( is the opening delimiter. q'('s not available)' is therefore a valid character literal. The concatenation expression is valid both without an alias and with "CURRENT AVAILABILITY" as a double-quoted column alias. A quoted identifier uses double quotation marks, whereas single quotation marks delimit a character literal.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!