フリー問題

Oracle Database SQL のフリー問題 2 / 20 問目

問題文

A report builds a display name by joining a first name, a middle name and a last name with the concatenation operator. Some rows hold a null middle name. What does the expression return for those rows?

選択肢

  1. It returns a null for the whole expression, because every operator that receives a null operand hands back a null as its result.
  2. It returns the remaining operands joined with one space between them, because the operator inserts a separator where a null operand sits.
  3. It returns the remaining operands joined together, because concatenation is the one operator that reads a null operand as text of zero length.
  4. It returns an error while the row is fetched, because the operator checks that each operand holds a value before it joins them.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。