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 8063

The employee table contains these columns: Last_name Varchar2 (25) First_name Varchar2 (25) Salary Number7, 2 You need to display the names of employees on more than an average salary of all employees. Evaluate the SQL statement. SELECT LAST_NAME, FIRST_NAME from employee where salary< avg(salary); Which change should you make to achieve the desired results?

Option A

Change the function in the Where clause.

Option B

Move the function to the select clause and add a group clause.

Option C

Use a sub query in the where clause to compare the average salary value.

Option D

Move the function to the select clause and add a group by clause and a having clause.

Correct Answer C
Explanation Explanation/Reference: Explanation: Answer C shows the correct way to change query, because function AVG can not be used in WHERE clause. Incorrect Answers: A: Usage of function AVG is correct B: This query does not require grouping to extract correct information from the table. D: This query does not require to use GROUP BY and HAVING clauses to extract correct information from table Oracle 8, DBA Certification Exam Guide, Jason S. Couchman, p. 57 Chapter 2: Advanced Data Selection in Oracle


Question ID 8064

The employee table contains these columns: FIRST-NAME VARCHER2(25) COMISSION NUMBER(3,2) Evaluate this SQL statement SELECT first-name,commission FROM employee WHERE commission= (SELECTcomission FROM employee WHERE UPPER(first-name)= 'scott') Which statement will cause this statement to fail?

Option A

Scott has a null commission resolution.

Option B

Scott has a zero commission resolution.

Option C

There is no employee with the first name Scott.

Option D

The first name values in the data base are in the lower case.

Correct Answer A
Explanation Explanation/Reference: Explanation: Answer A is correct because if Scott has a null commission expression in WHERE clause will cause error. Incorrect Answers: B: Query will work correctly. C: Query will work even without employee with the first name Scott. D: Name values will be converted to upper case by function UPPER, query will work, but for correct result you need to change UPPER to LOWER function. Oracle 8, DBA Certification Exam Guide, Jason S. Couchman, p. 64 Chapter 2: Advanced Data Selection in Oracle

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