QuestionQ48

VerifiedUsing Single-Row Functions to Customize Output

View the Exhibit and examine the PRODUCTS table structure. 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 produce the required output?

Question Image

Choose two
Explanation

Oracle alternative quoting permits non-whitespace delimiters, with matching delimiters required unless a paired delimiter is used. The backslash-delimited literal in C produces 's, and its following ordinary literal supplies category is. The angle-bracket-delimited literal in D produces 's , and its following ordinary literal supplies category is . Both expressions concatenate to prod_name's category is prod_category.

Learn more

Community Discussion

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