Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

1z0-071 Exam Dumps - Oracle Database 12c SQL

Go to page:
Question # 89

Which three items does a direction of a relationship contain?

A.

an attribute

B.

a cardinality

C.

label

D.

an optionality

E.

a unique identifier

F.

an entity

Full Access
Question # 90

Which two statements are true?

A.

AIl conditions evaluated using DECODE can also be evaluated using CASE.

B.

All conditions evaluated using CASE can also be evaluated using DECODE.

C.

CASE is a function and DECODE is not.

D.

DECODE is a function and CASE is not.

E.

Neither CASE nor DECODE is a function.

F.

Both CASE and DECODE are functions.

Full Access
Question # 91

Examine the description of the EMPLOYEES table:

Which two statements will run successfully?

A.

SELECT 'The first_name is '' || first_name || '' FROM employees ;

B.

SELECT 'The first_name is '''||first_name ||'''' FROM employees ;

C.

SELECT 'The first_name is ''' ||first_name||''' FROM employees ;

D.

SELECT 'The first_name is '|| first_name|| '' FROM employees;

E.

SELECT 'The first_name is \'' || first_name || '\'' FROM employees;

Full Access
Question # 92

You execute this command:

TRUNCATE TABIE depts;

Which two are true?

A.

A ROLLBACK statement can be used to retrieve the deleted data.

B.

It drops any triggers defined on the table.

C.

It retains the indexes defined on the table.

D.

It retains the integrity constraints defined on the table,

E.

It always retains the space used by the removed rows.

F.

A FLASHBACK TABLE statement can be used to retrieve the deleted data.

Full Access
Question # 93

Examine the description of the EMPLOYEES table:

Which statement increases each employee's SALARY by the minimum SALARY for their DEPARTM

ENT_ID?

A.

UPDATE employees e1

SET salary =(SELECT e2. salary + MIN(e2.salary)

FROM employees e2

WHERE e1.department_ id = e2. department_id GROUP BY e2. department_id) ;

B.

UPDATE employees e1

SET salary = salary +

(SELECT MIN(e1. salary)

FROM employees e2

WHERE e1.department_id = e2 .department_id);

C.

UPDATE employees e1

SET salary = salary+(SELECT MIN (salary)

FROM employees e2) ;

D.

UPDATE employees e1

SET salary=

(SELECT e1.salary + MIN(e2.salary)

FROM employees e2

WHERE e1. department_ id = e2.department_id);

Full Access
Question # 94

which three statements are true regarding single row subqueries?

A.

THEY CAN BE USED in the where clause.

B.

A SQL STATEMENT MAY HAVE MULTIPLE SINGLE ROW SUBQUERY BLOCKS.

C.

THEY MUST BE PLACED ON THE RIGHT SIDE OF THE COMPARISON OPERATOR OR CONDITION.

D.

they must be placed on the left side of the comparison operator or condition.

E.

THEY CAN BE USED IN THE HAVING CLAUSE

F.

they must return a row to prevent errors in the SQL statement.

Full Access
Question # 95

Examine the description of the EMPLOYEES table:

Which query is valid?

A.

SELECT dept_id, join date, SUM(salary) FROM employees GROUP BY dept_id,join_date;

B.

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

C.

SELECT dept_id, AVG(NAX(salary)) FROM employees GROUP BY dept_id;

D.

SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id;

Full Access
Question # 96

Examine the data in the EMPLOYEES table:

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

A.

SELECT last name,

(monthly salary*12) + (monthly_commission_pct * 12) AS

annual comp

FROM employees

;

B.

SELECT last_ name (monthly_ salary+ monthly_ commission _ pct) *12 AS annual_

FROM employees ;

C.

SELECT last name, (monthly_ salary *12) + (monthly_ salary * 12 * NVL

(monthly commission pct,0) ) As annual _ comp

FROM employees;

D.

SELECT last_ name, monthly_ salary*12) + (monthly_ salary * 12 * Monthly commission _Pct) AS

annual_ comp

FROM employees;

Full Access
Go to page: