Multiple Choice
Which of the following correctly creates a function that performs an update on the BB_TEST1 table?
A) CREATE OR REPLACE FUNCTION fct_test1_sf (p_num IN NUMBER)
RETURN NUMBER
IS
BEGIN
UPDATE bb_test1
SET col1 = p_num;
RETURN p_num;
END;
B) CREATE OR REPLACE FUNCTION fct_test1_sf (p_num IN NUMBER)
RETURN NUMBER
IS
BEGIN
UPDATE bb_test1;
SET col1 = p_num;
RETURN p_num;
END;
C) CREATE OR REPLACE FUNCTION fct_test1_sf (p_num)
RETURN NUMBER
IS
BEGIN
UPDATE bb_test1
RETURN p_num;
END;
D) CREATE OR REPLACE FUNCTION fct_test1_sf (p_num IN NUMBER(6) )
RETURN NUMBER
IS
BEGIN
UPDATE bb_test1
SET col1 = p_num;
RETURN p_num
END
Correct Answer:

Verified
Correct Answer:
Verified
Q41: _ cannot be used in SQL statements.
Q42: The term "passed by reference" means that
Q43: The default behaviors of value passing can
Q44: The term <u>passed by reference</u> implies that
Q45: Functions used in SQL statements must meet
Q46: The _ command is used to view
Q48: You cannot include _ information when declaring
Q49: You can include multiple RETURN statements in
Q50: Which of the following code fragments would
Q51: In a(n) <u>function</u>, the RETURN statement includes