Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Legit 1z0-071 Exam Download

Page: 11 / 24
Total 324 questions

Oracle Database 12c SQL Questions and Answers

Question 41

Examine this statement:

Which two statements are true?

Options:

A.

All remaining employee names will appear in an ascending order

B.

The names of employees remaining the maximum salary will appear first in an ascending order

C.

All remaining employee names will appear in ascending order

D.

All remaining employee names will appear in descending order

E.

The names of employees maximum salary will appear fist to descending order

F.

The names of employees maximum salary will appear fist to ascending order

Question 42

Examine the description of the EMPLOYEES table:

NLS_DATE FORMAT is DD-MON-RR.

Which two queries will execute successfully?

Options:

A.

SELECT dept_ id, AVG (MAX(salary)) FROM employees GROUP By dept_id HAVING hire_date> ' O1-JAN-19';

B.

SELECT dept_ id, AVG(MAX(salary)) FROM employees GROUP BY dept_id, salary;

C.

SELECT dept id, MAX (SUM(salary)) FROM employees GROUP BY dept_id;

D.

SELECT dept_ iD, sum(salary) FROM employees WHERE hire_date > '01-JAN-9' GROUP BY dept_id;

E.

SELECT AVG(MAX(salary)) FROM employees GROUP BY salary;

Question 43

Examine the description of the ORDER_ITEMS table:

Examine this incomplete query:

SELECT DISTINCT quantity * unit_price total_paid FROM order_items ORDER BY ;

Which two can replace so the query completes successfully?

Options:

A.

quantity

B.

quantity, unit_price

C.

total_paid

D.

product_id

E.

quantity * unit_price

Question 44

Examine the data in the EMPLOYEES table:

Which statement will compute the total annual compensation for each employee?

Options:

A.

SELECT last _ NAME (monthly_ salary + monthly _commission _ pct) * 12 AS annual_ comp FROM employees;

B.

select last _ name, (monthly_ salary * 12) + (monthly_ salary * 12 *monthly_ commission_ pct) AS annual_ camp FROM employees

C.

SELECT last _ name, (monthly_ salary * 12) + (monthly_ salary * 12 * NVL (monthly_ commission _pct, 0)) AS annual _comp

D.

SELECT last _ name, (monthly _ salary * 12) + (monthly_ commission _ pct * 12) AS FROM employees:

Page: 11 / 24
Total 324 questions