フリー問題

Oracle Database Program with PL/SQL のフリー問題 15 / 20 問目

問題文

A query has to show a computed value beside each row, and a batch has to receive two computed values in variables. Which pair of forms fits those two needs?

選択肢

  1. A function for the query, and a function for the batch, because a function can return a record with two fields and a query can name it in the select list while the batch reads the two fields of the value that it returns.
  2. A procedure for the query, and a procedure for the batch, because a procedure that writes its results into a table lets the query read them with a join afterwards.
  3. A procedure with two parameters that return values for the query and a function for the batch, because a query can name such a procedure in its select list and read both of the values from it.
  4. A function for the query, and a procedure with two parameters that return values for the batch that has to receive the two computed numbers of its own.

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

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