AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-001





Question ID 8120

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. Desired results are: 1. Display the commission multiplied by 1.5 2. Exclude employees with zero commission. 3. Display a zero for employees with null commission value. Evaluate this SQL statement. SELECT id, last_name, first_name, commission*1. 5 FROM employee WHERE commission <>0; Which of the desired results does the statement provide?

Option A

All the desired results.

Option B

Two of the desired results.

Option C

One of the desired results.

Option D

A syntax error.

Correct Answer B
Explanation Explanation/Reference:Explanation: Answer B is correct because the statement will provide results only for conditions 1 and 2. Condition 3 will require to use NVL function in SELECT clause of the statement. Incorrect Answers: A: Only two conditions will be satisfied with this statement, not all. C: Two conditions will be satisfied with this statement, not one. D: There is no syntax error in the statement. Oracle 8, DBA Certification Exam Guide, Jason S. Couchman, p. 10-11 Chapter 1: Selecting Data from Oracle


Question ID 8121

View the EXHIBIT. Examine the trace instance chart for employee table. You want to display each employee hire date from earliest to latest. Which SQL statement will you use?

Option A

SELECT hire_date FROM employee;

Option B

SELECT hire_date FROM employee ORDER BY hire_date;

Option C

SELECT employee FROM employee ORDER by hire_date;

Option D

SELECT hire_date FROM employee ORDER BY hire_date DESC;

Correct Answer B
Explanation Explanation/Reference: Explanation: Answer B is correct because ORDER BY clause of the SELECT statement will sort hire date from earliest to latest by default. Incorrect Answers: A: There is no sorting for hire date in this statement at all. C: There is an error in this statement, hire date is need to be shown, not employee. D: DESC clause will sort hire date from latest to earliest, not vice versa. Oracle 8, DBA Certification Exam Guide, Jason S. Couchman, p. 18-19 Chapter 1: Selecting Data from Oracle

Send email to admin@getfreedumps for new dumps request!!!