C2090-543 Free Dumps Study Materials
Question 19: Click the Exhibit button.
CREATE TABLE s1.mytab (
col1 INTEGER GENERATED ALWAYS AS IDENTITY,
col2 INTEGER,
col3 INTEGER,
CHECK (col1+col3 < 500)
)
CREATE VARIABLE s1.var1 INTEGER DEFAULT (99)
CREATE FUNCTION s1.add100 (p1 INT, p2 INT)
RETURNS INTEGER
LANGUAGE SQL
DETERMINISTIC
NOT FENCED
BEGIN
SET p1= p2+100;
RETURN p1;
END
Given the table, variable, and function definitions shown in the exhibit, which two statements
contain a
valid invocation of the add100 function? (Choose two.)
A. SELECT col1, outcol=add100(col2,col3) FROM mytab
B. SET var1 = ABS(add100(1,99))
C. SELECT col1, add100(col2,col3) AS outcol FROM mytab
D. SELECT outcol.* FROM TABLE(add100(col2,col3)) AS outcol
Correct Answer: BC