Which two queries would give the required output?

View the Exhibit and examine the structure of the PRODUCTS table. You need to generate
a report in the following format: CATEGORIES 5MP Digital Photo Camera’s category is
Photo Y Box’s category is Electronics Envoy Ambassador’s category is Hardware Which
two queries would give the required output? (Choose two.)

View the Exhibit and examine the structure of the PRODUCTS table. You need to generate
a report in the following format: CATEGORIES 5MP Digital Photo Camera’s category is
Photo Y Box’s category is Electronics Envoy Ambassador’s category is Hardware Which
two queries would give the required output? (Choose two.)

A.
SELECT prod_name || q'<‘s >’ || ‘category is ‘ || prod_category CATEGORIES FROM
products;

B.
SELECT prod_name || q”’s category is ‘ || prod_category CATEGORIES FROM products;

C.
SELECT prod_name || q'[‘s ]’category is ‘ || prod_category CATEGORIES FROM
products;

D.
SELECT prod_name || q’\’s\’ || ‘ category is ‘ || prod_category CATEGORIES FROM
products;



Leave a Reply 1

Your email address will not be published. Required fields are marked *


luca

luca

You can choose any convenient delimiter, single-byte or multibyte, or any of the following character pairs: [ ], { }, ( ), or .
In the example shown, the string contains a single quotation mark, which is normally interpreted as a delimiter of a character string. By using the q operator, however, brackets [] are used as the quotation mark delimiters. The string between the brackets delimiters is interpreted as a literal character string.

C is wrong because there are no || after ]’