Untitled
Untitled
UPDATE
The _____ is an integer value that represents the number of rows affected by the most recent SQL
statement. SQL%ROWCOUNT
The _____ statement selects rows from one table to update and/or insert into another table. MERGE
The ______ is a Boolean attribute that evaluates to True if the most recent SQL statement returned at
least one row. SQL%FOUND
The code below must print the number of rows updated. Which part of the code must be changed to
satisfy the output? Declare
begin
update copy_emp
end; JOB_ID
What could be the possible error of the given code below? DECLARE
v_sum_sal NUMBER(10,2);
BEGIN
SELECT SUM(salary) FROM employees WHERE department_id = v_deptno;
Boolean attribute that evaluates to TRUE if the most recent SQL statement did not return even one row.
A. SQL%NOTFOUND
The use of CASE statement to test conditions such as <, >, >=, <= is know as case expression.T
Control structures are used to change the logical flow of statements within the PL/SQL block. T
Refer to M1S2-code reference#3, data type for vmesg variable must be CHAR. F
The use of CASE statement to test conditions such as <, >, >=, <= is know as: Searched CASE statement
Refer to M1S2-code reference#3, what is the missing element in the where clause? (UPPER) Nothing is
missing
Refer to M1S2-code reference#1, what is that last missing element? end if;
The _______ are used to change the logical flow of statements within the PL/SQL block. Control
Structures
Refer to M1S3-code reference#1, what type of looping is used in the code? ________ BASIC LOOP
Refer to M1S3-code reference#2, what is missing in the SELECT statement? _________ V_LOC_ID
Refer to M1S3-code reference#2, what is missing in the FOR … LOOP section? _________ IN
In BASIC and WHILE loop, the iteration will terminate when the counter is > than the upper bound. T
In BASIC and WHILE loop, the iteration will terminate when the counter value meets the upper bound
value. T