databases Online Quiz - 144
Description: databases Online Quiz - 144 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: databases |
Script component Can have only one Input flow and zero or more Output flows.
Object is Valid Data type of SSIS Variable.
You created stored procedure DELETE_TEMP_TABLE that uses dynamic SQL to remove a table in your schema. You have granted the EXECUTE privilege to user A on this procedure. When user A executes the DELETE_TEMP_TABLE procedure, under whose privileges are the operations performed by default?
Which code can you use to ensure that the salary is not increased by more than 10% at a time nor is it ever decreased?
Examine the code and state which of the following options is correct? CREATE OR REPLACE PACKAGE bonus IS g_max_bonus NUMBER := .99; FUNCTION calc_bonus (p_emp_id NUMBER) RETURN NUMBER; FUNCTION calc_salary (p_emp_id NUMBER) RETURN NUMBER; END; / CREATE OR REPLACE PACKAGE BODY bonus IS v_salary employees.salary%TYPE; v_bonus employees.commission_pct%TYPE; FUNCTION calc_bonus (p_emp_id NUMBER) RETURN NUMBER - 7 - IS BEGIN SELECT salary, commission_pct INTO v_salary, v_bonus FROM employees WHERE employee_id = p_emp_id; RETURN v_bonus * v_salary; END calc_bonus FUNCTION calc_salary (p_emp_id NUMBER) RETURN NUMBER IS BEGIN SELECT salary, commission_pct INTO v_salary, v_bonus FROM employees WHERE employees RETURN v_bonus * v_salary + v_salary; END cacl_salary; END
Which statement is valid when removing procedures?
You need to create a trigger on the EMP table that monitors every row that is changed and places this information into the AUDIT_TABLE. What type of trigger do you create?
Which of the following do not help you execute multiple PL/SQL programs simultaneously?
In a PL/SQL block, a variable is declared as NUMBER without an initial value. What will its value be when it is first used in the executable section of the PL/SQL block?
Which of the following queries return the names of programs (without duplication) defined in the currently-connected schema whose source contains a call to DBMS_OUTPUT.PUT_LINE (assume that this program name does not appear inside comments)?
PL/SQL raises an exception, in which TWO of the following cases:
What is the result if two NULL values are compared to each other?
Functions for error trapping are contained in which section of a PL/SQL block?
What is the smallest possible PL/SQL block?
Maximum no of non clustered index in a table.
Maximum no of columns in a key.
maximum number of segments for any database
The maximum allowable size of the combined index values
maximum length for comments
maximum of triggers in sybase