|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#76. The EMPLOYEE table contains these columns: ID NUMBER(9)
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
COMMISSION NUMBER(7,2) You need to display the current commission for all employees. These are the desired results: 1.Display the commission multiplied by 1.5. 2.Exclude employees with a zero commission. 3.Display a zero for employees with a null commission value. Evaluate this SQL command: SELECT id, last_name, first_name, commission * 1.5 FROM employee WHEREcommission <> 0;
What does the statement provide?
Show comments for this question (0)
Add comments
Link to this question
|
|
#78. Examine the code: 1 DECLARE 2 iNUMBER:=0; 3 v_date DATE; 4 BEGIN 5 i := i+1; 6 LOOP 7 v_date := v_date + 5; B i := i+1; 9 EXIT WHEN i = 5; 10 END LOOP; 11 END;
You have encountered unexpected results when the above block of code is executed. How can you trace the values of the counter variable I and date variable V_DATE in the SQL*Plus environment?
Show comments for this question (0)
Add comments
Link to this question
|
|
#79. Examine the code: SET SERVEROUTPUT ON DECLARE v_name emp.ename%TYPE; v_num NUMBER; v_sal NUMBER(8,2); BEGIN
-- This code displays salaries if larger than 10000 SELECT ename, sal INTO v_name, v_sal FROM emp WHERE empno = 101; IF (v_sal .GT. 10000) THEN DBMS_OUTPUT PUT_LINE (‘Salary IS ‘|| v_sal || ‘FOR employee ‘|| v_name); END IF; END; SET SERVEROUTPUT OFF
Which statement causes a compilation error when the above PLJSQL block is executed?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.396
|
Server date 06:52 22-11-2008
|
Developed by Zip © 2006
|
|
 |
|
|