|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#13. Examine this block of code: SET SERVEROUTPUT ON DECLARE x NUMBER; v_sal NUMBER; v_found VARCHAR2(10) := ‘TRUE’; BEGIN x = ’1’ v_sal := 1000; DECLARE v_found VARCHAR2(10); y NUMBER; BEGIN IF (v_sal > 500) THEN v_found := ‘YES’; END IF; DBMS_OUTPUT.PUT_LINE (‘VALUE OF v_found IS ‘II v_found); DBMS_OUTPUT.PUT_LINE (‘VALUE OF v_sal IS ‘II v_sal); y := 20; END; DBMS_OUTPUT.PUT_LINE (‘VALUE OF v_found IS ‘II v_found); DBMS_OUTPUT.PUT_LINE (‘VALUE OF Y IS ‘ || TO_CHAR(y)); END; SET SERVEROUTPUT OFF
What is the result of executing this block of code?
Show comments for this question (0)
Add comments
Link to this question
|
|
#14. Examine this block or code: SET SERVEROUTPUT ON DECLARE x NUMBER; v_sal NUMBER; v_round VARCHAR2(10) := ‘TRUE’; BEGIN x = ’1’: v_sal := 1000; DECLARE v_round VARCHAR2(10); y NUMBER; BEGIN IF (v_sal > 500) THEN v_round := ‘YES’; END IF; DBMS_OUTPUT.PUT_LINE (‘VALUE OF v_round IS ‘|| v_round); DBMS_OUTPUT.PUT_LINE (‘VALUE OR v_sal IS ‘II v_sal); y := 20; END; DBMS_OUTPUT.PUT_LINE (‘VALUE OF v_round IS ‘|| v_found); DBMS_OUTPUT.PUT_LINE (‘VALUE OF Y IS ‘ TO_CHAR(y)); END; SET SERVEROUTPUT OFF
Why does this code produce an error when executed?
Show comments for this question (0)
Add comments
Link to this question
|
|
#18. The PRODUCT table contains these columns: ID NUMBER(9)
COST NUMBER(7,2)
SALE_PRICE NUMBER(7,2) Management has asked you to calculate the net revenue per unit for each product if the cost of each product is increased by 10% and the sale price of each product is increased by 25%. You issue this SQL statement SELECT id, sale_price * 1.25- COST* 1.10 FROM product;
Which conclusion can you draw from the results?
Show comments for this question (0)
Add comments
Link to this question
|
|
#20. Click on the EXHIBIT button and examine the table instance chart for the cars table. You query the database with this command: SELECT lot_no “Lot NUMBER”, COUNT(*) “NUMBER OF Cars Available” FROM cars WHERE model = ‘Fire’ GROUP BY lot_no HAVING COUNT(*) > 10 ORDER BY COUNT(*);
Which clause restricts which groups are displayed?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.145
|
Server date 07:37 22-11-2008
|
Developed by Zip © 2006
|
|
 |
|
|