New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free 1z0-071 Oracle Updates

Page: 19 / 24
Total 326 questions

Oracle Database 12c SQL Questions and Answers

Question 73

Which two statements are true about outer Joins?

Options:

A.

The outer join operator (+) can be used on both sides of the join condition in an outer join.

B.

An outer join is used to retrieve only the rows that do not meet the join condition.

C.

The IN operator cannot be used in a condition that Involves an outer join.

D.

A condition representing an outer join cannot be linked to another condition using the or logical operator.

E.

The outer join operator (+) is used next to the column of the table without the matching rows.

Question 74

Which two are true about granting privilege on objects?

Options:

A.

The owner of an object acquires all object privilege on that object by default.

B.

The WITH GRANT OPTION clause can be used only by DBA users.

C.

A table owner must grant the references privilege to allow other users to create FOREIGN KEY constraints using that table.

D.

An object privilege can be granted to a role only by the owner of that object.

E.

An object privilege can be granted to other users only by the owner of object.

Question 75

You want to write a query that prompts for two column names and the WHERE condition each time It is executed in a session but only prompts for the table name the first time it is executed. The variables used in your

query are never undefined in your session . Which query can be used?

Options:

A.

SELECT &col1, &col2

FROM &&table

WHERE &condition;

B.

SELECT &col1, &col2

FROM “&table”

WHERE &condition;

C.

SELECT &&col1,&&col2

FROM &table

WHERE &&condition= &&cond;

D.

SELECT'&co11','&&co12'

FROM &table

WHERE'&&condition' ='&cond';

E.

SELECT&&col1, &&col2

FROM &table

WHERE &&condition;

Question 76

Which statement will return a comma-separated list of employee names in alphabetical order for each department in the EMP table?

Options:

A.

SELECT deptno,LISTAGG(ename, ' , ') WITHIN GROUP AS employee_list FROM emp GROUP BY deptno;

B.

SELECT deptno,LISTAGG(ename, ', ') WITHIN GROUP AS employee_list FROM emp GROUP BY deptno ORDER BY ename;

C.

SELECT deptno,LISTAGG(ename, ', ') WITHIN GROUP (GROUP BY deptno) AS employee_list FROM emp ORDER BY ename;

D.

SELECT deptno,LISTAGG(ename, ', ') WITHIN GROUP (ORDER BY ename) AS employee_list FROM emp GROUP BY deptno;

Page: 19 / 24
Total 326 questions