PL/SQL Section 3 Quiz

 1. The following code will return the last name of the employee whose employee id is equal to 100: True or False?

DECLARE
    v_last_name employees.last_name%TYPE;
    employee_id employees.employee_id%TYPE := 100;
BEGIN
    SELECT last_name INTO v_last_name
    FROM employees
    WHERE employee_id = employee_id;
END;


(1) Point

2. It is good programming practice to create identifiers having the same name as column names. True or False?

(1) Point

3. Which rows will be deleted from the EMPLOYEES table when the following code is executed?

DECLARE
    salary employees.salary%TYPE := 12000;
BEGIN
    DELETE FROM employees
    WHERE salary > salary;
END;


(1) Point

4. A variable is declared as:

DECLARE
    v_salary employees.salary%TYPE;
BEGIN

Which of the following is a correct use of the INTO clause?


(1) Point

5. Which one of these SQL statements can be directly included in a PL/SQL executable block?

(1) Point

Komentar

Postingan populer dari blog ini

PL/SQL Section 15 Quiz

PL/SQL Section 13 Quiz

PL/SQL Section 14 Quiz