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

1z0-071 Oracle Database 12c SQL Questions and Answers

Questions 4

Examine the data in the COLORS table:

1z0-071 Question 4

Examine the data in the BRICKS table:

1z0-071 Question 4

Which two queries return all the rows from COLORS?

Options:

A.

SELECT.

FROM bricks b

RIGHT JOIN colors c

ON b. color _rgb_ hex_ value = c. rgb hex_ value;

B.

SELECT

EROM colors C

LEFT JOIN bricks 上

USING (rgb _ hex_ value) ;

C.

SELECT

FROM bricks b

FULL JOIN colors C

ON b. color rgb _ hex_ value = c. rgb _hex_ value;

D.

SELECT *

EROM bricks | b

JOIN colors C

ON b. color_ rgb_ hex_ value =c. rgb _hex value;

E.

SELECT

EROM colors C

LEET JOIN bricks b

ON b. color_ rgb_ hex value = c. rgb. hex.

value

WHERE b. brick_ id > 0;

Buy Now
Questions 5

Examine this query:

SELECT SUBSTR (SYSDATE,1,5) ‘Result’ FROM DUAL

Which statement is true?

Options:

A.

It fails unless the expression is modified to TO-CHAR(SUNBSTR(SYSDATE,1,5)

B.

It fails unless the expression is modified to SUBSTR (TO_ CHAR(SYSDATE),1,5)

C.

It fails unless the expression is modified to SUBSTR (TO_ CHAR(TRUNC(SYSDATE)),1,5)

D.

It executes successfully with an implicit data type conversion

Buy Now
Questions 6

Which two statements are true regarding a SAVEPOINT?

Options:

A.

Rolling back to a SAVEPOINT can undo a CREATE INDEX statement.

B.

Only one SAVEPOINT may be issued in a transaction.

C.

A SAVEPOINT does not issue a COMMIT

D.

Rolling back to a SAVEPOINT can undo a TRUNCATE statement.

E.

Rolling back to a SAVEPOINT can undo a DELETE statement

Buy Now
Questions 7

In the PROMOTIONS table, the PROMO_BEGTN_DATE column is of data type DATE and the default date format is DD-MON-RR.

Which two statements are true about expressions using PROMO_BEGIN_DATE contained in a query?

Options:

A.

TO_NUMBER(PROMO_BEGIN_DATE)-5 will return number

B.

TO_DATE(PROMO_BEGIN_DATE * 5) will return a date

C.

PROMO_BEGIN_DATE-SYSDATE will return a number.

D.

PROMO_BEGIN_DATE-5 will return a date.

E.

PROMO_BEGIN_DATE-SYSDATE will return an error.

Buy Now
Questions 8

Examine this SQL statement:

DELETE FROM employees e

WHERE EXISTS

(SELECT'dummy'

FROM emp_history

WHERE employee_id = e.employee_id)

Which two are true?

Options:

A.

The subquery is executed for every row in the EMPLOYEES table.

B.

The subquery is not a correlated subquery.

C.

The subquery is executed before the DELETE statement is executed.

D.

All existing rows in the EMPLOYEE table are deleted.

E.

The DELETE statement executes successfully even if the subquery selects multiple rows.

Buy Now
Questions 9

Examine the description of the CUSTONERS table:

1z0-071 Question 9

CUSTNO is the PRIMARY KEY.

You must determine if any customers' details have been entered more than once using a different CUSTNO, by listing all duplicate names.

Which two methods can you use to get the required result?

Options:

A.

LEFT OUTER JOIN with self join

B.

PULL OUTER JOIN with self join

C.

subquery

D.

RIGHT OUTER JOIN with self join

E.

self Join

Buy Now
Questions 10

Examine the description of the EMPLOYEES table:

1z0-071 Question 10

NLS_DATE_FORMAT is set to DD-MON-YY.

Which query requires explicit data type conversion?

Options:

A.

SELECT salary + 120.50 FROM employees;

B.

SELECT SUBSTR(join date, 1, 2)- 10 FROM employees;

C.

SELECT join date 11.’11 salary FROM employees;

D.

SELECT join date FROM employees where join date > *10-02-2018*;

E.

SELECT join date + 20 FROM employees;

Buy Now
Questions 11

Which two statements are true about the COUNT function?

Options:

A.

It can only be used for NUMBER data types.

B.

COUNT (DISTINCT inv_amt) returns the number of rows excluding rows containing duplicates and NULLs in the INV_AMT column

C.

COUNT(*) returns the number of rows in a table including duplicate rows and rows containing NULLs in any column.

D.

A SELECT statement using the COUNT function with a DISTINCT keyword cannot have a WHERE clause.

E.

COUNT(inv_amt) returns the number of rows in a table including rows with NULL in the INV_AMT column.

Buy Now
Questions 12

You execute this command:

ALTER TABLE employees SET UNUSED (department_id);

Which two are true?

Options:

A.

A query can display data from the DEPARTMENT_ID column.

B.

The storage space occupied by the DEPARTMENT_ID column is released only after a COMMIT is issued.

C.

The DEPARTMENT_ID column is set to null for all tows in the table

D.

A new column with the name DEPARTMENT_ID can be added to the EMPLOYEES table.

E.

No updates can be made to the data in the DEPARTMENT_ID column.

F.

The DEPARTMENT_ID column can be recovered from the recycle bin

Buy Now
Questions 13

Which two actions can you perform with object privileges?

Options:

A.

Create roles.

B.

Delete rows from tables in any schema except sys.

C.

Set default and temporary tablespaces for a user.

D.

Create FOREIGN KEY constraints that reference tables in other schemas.

E.

Execute a procedure or function in another schema.

Buy Now
Questions 14

Examine the description of the CUSTOMERS table:

1z0-071 Question 14

Which two SELECT statements will return these results:

CUSTOMER_ NAME

--------------------

Mandy

Mary

Options:

A.

SELECT customer_ name FROM customers WHERE customer_ name LIKE ' % a % ’ ;

B.

SELECT customer_ name FROM customers WHERE customer name LIKE 'Ma%' ;

C.

SELECT customer_ name FROM customers WHERE customer_ name='*Ma*';

D.

SELECT customer_ name FROM customers WHERE UPPER (customer_ name ) LIKE 'MA*. ;

E.

SELECT customer_ name FROM customers WHERE customer name LIKE 'Ma*';

F.

SELECT customer_ name FROM customers WHERE UPPER (customer name) LIKE 'MA&';

G.

SELECT customer_ name FROM customers WHERE customer_ name KIKE .*Ma*';

Buy Now
Questions 15

Examine this partial command:

1z0-071 Question 15

Which two clauses are required for this command to execute successfully?

Options:

A.

the DEFAULT DIRECTORY clause

B.

the REJECT LIMIT clause

C.

the LOCATION clause

D.

the ACCESS PARAMETERS clause

E.

the access driver TYPE clause

Buy Now
Questions 16

You execute this query:

SELECT TO CHAR (NEXT_DAY(LAST_DAY(SYSDATE),’MON’ ),’ dd“Monday for” fmMonth rrr’) FROM DUAL;

What is the result?

Options:

A.

It executes successfully but does not return any result.

B.

It returns the date for the first Monday of the next month.

C.

It generates an error.

D.

It returns the date for the last Monday of the current month.

Buy Now
Questions 17

Examine these two queries and their output:

SELECT deptno, dname FROM dept;

1z0-071 Question 17

SELECT ename, job, deptno FROM emp ORDER BY deptno;

1z0-071 Question 17

Now examine this query:

SELECT ename, dname

FROM emp CROSS JOIN dept WHERE job = 'MANAGER'

AND dept.deptno IN (10, 20) ;

Options:

A.

64

B.

6

C.

3

D.

12

Buy Now
Questions 18

Which statement will return the last sequence number generated by the EMP_ SEQ sequence?

Options:

A.

SELECT NEXTVAL FROM emp_ seq;

B.

SELECT CURRVAL FROM emp_ seq;

C.

SELECT emp_ seq. CURRVAL FROM DUAL;

D.

SELECT emp_ seq . NEXTVAL FROM DUAL;

Buy Now
Questions 19

Examine this query:

SELECT 2 FROM dual d1 CROSS JOIN dual d2 CROSS JOIN dual d3;

What is returned upon execution?

Options:

A.

0 rows

B.

an error

C.

8 rows

D.

6 rows

E.

1 row

F.

3 rows

Buy Now
Questions 20

Which two are true?

Options:

A.

CONCAT joins two or more character strings together.

B.

FLOOR returns the largest integer less than or equal to a specified number.

C.

CONCAT joins two character strings together.

D.

INSTR finds the offset within a string of a single character only.

E.

INSTR finds the offset within a character string, starting from position 0.

F.

FLOOR returns the largest positive integer less than or equal to a specified number.

Buy Now
Questions 21

The EMPLOYEES table contains columns EMP_ID of data type NUMBER and HIRE_DATE of data type DATE

You want to display the date of the first Monday after the completion of six months since hiring.

The NLS_TERRITORY parameter is set to AMERICA in the session and, therefore, Sunday is the first day of the week Which query can be used?

Options:

A.

SELECT emp_id,NEXT_DAY(ADD_MONTHS(hite_date,6),'MONDAY') FROM employees;

B.

SELECT emp_id,ADD_MONTHS(hire_date,6), NEXT_DAY('MONDAY') FROM employees;

C.

SELECT emp_id,NEXT_DAY(MONTHS_BETWEEN(hire_date,SYSDATE),6) FROM employees;

D.

SELECT emp_id,NEXT_DAY(ADD_MONTHS(hire_date,6),1) FROM employees;

Buy Now
Questions 22

What is true about non-equijoin statement performance?

Options:

A.

The between condition always performs less well than using the >= and <= conditions.

B.

The Oracle join syntax performs better than the SQL: 1999 compliant ANSI join syntax.

C.

The join syntax used makes no difference to performance.

D.

The between condition always performs better than using the >= and <= conditions.

E.

Table aliases can improve performance.

Buy Now
Questions 23

Which three statements are true about GLOBAL TEMPORARY TABLES?

Options:

A.

GLOBAL TEMPORARY TABLE rows inserted by a session are available to any other session whose user has been granted select on the table.

B.

A TRUNCATE command issued in a session causes all rows In a GLOBAL TEMPORARY TABLE for the issuing session to be deleted.

C.

A DELETE command on a GLOBAL TEMPORARY TABLE cannot be rolled back.

D.

A GLOBAL TEMPORARY TABLE's definition is available to multiple sessions.

E.

Any GLOBAL TEMPORARY TABLE rows existing at session termination will be deleted.

F.

GLOBAL TEMPORARY TABLE space allocation occurs at session start.

Buy Now
Questions 24

Which two statements are true about CURRENT_TIMEITAMP?

Options:

A.

The date is in the time zone of DBTIMEZONE.

B.

The value varies depending on the setting of SESSIONTIMEZONE.

C.

It returns the same date as CURRENT_DATE.

D.

The time is in the time zone of DBTIMEZONE.

E.

It returns a value of data type TIMESTAMP

F.

It always returns the same value as SYSTIMESTAMP

Buy Now
Questions 25

Examine this SQL statement

DELETE FROM employees e

WHERE EXISTS

(SELECT' dummy'

FROM emp history

WHERE employee_ id= e. employee id);

Which two are true?

Options:

A.

The subquery is not a correlated subquery.

B.

The subquery is executed before the DELETE statement is executed.

C.

All existing rows in the EMPLOYEES table are deleted,

D.

The DELETE statement executes successfully even if the subquery selects multiple rows.

E.

The subquery is executed for every row in the EMPLOYEES table.

Buy Now
Questions 26

Which three statements are true about performing DML operations on a view with no INSTEAD OF triggers defined?

Options:

A.

Insert statements can always be done on a table through a view.

B.

The WITH CHECK clause has no effect when deleting rows from the underlying table through the view.

C.

Delete statements can always be done on a table through a view.

D.

Views cannot be used to add rows to an underlying table If the table has columns with NOT NULL constraints lacking default values which are not referenced in the defining query of the view.

E.

Views cannot be used to query rows from an underlying table if the table has a PRIMARY KEY and the primary key columns are not referenced in the defining query of the view.

F.

Views cannot be used to add or modify rows in an underlying table If the defining query of the view contains the DISTINCT keyword.

Buy Now
Questions 27

The PROD_ID column is the foreign key in the SALES table.Which references the PRODUCTS table.

Similarly,the CUST_ID and TIME_ID columns are Also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.

Evaluate the following CREATE TABLE command:

CREATE TABLE new_sales(prod_id, I cust_id, order_date DEFAULT SYSDATE)

AS SELECT I prod_id,cust_id,time_id FROM sales.

Which statement is true regarding the above command?

Options:

A.

The NEW_SALES table would not get created because the DEFAULT value cannot be specified in the column definition.

B.

The NEW_SALES table would get created and all the NOT NULL constraints defined on the specified columns would be passed to the new table.

C.

The NEW_SALES table would not get created because the column names in the CREATE TABLE command and the SELECT clause I do not match.

D.

The NEW_SALES table would get created and all the FOREIGN KEY constraints defined on the specified columns would be passed to the new table

Buy Now
Questions 28

Examine the description or the BOOKS_TRANSACTIONS table:

1z0-071 Question 28

FOR customers whose income level has a value, you want to display the first name and due amount as 5% of their credit limit. Customers whose due amount is null should not be displayed.

Which query should be used?

Options:

A.

SELECT cust_first_name, cust_credit_limit * . 05 AS DUE AMOUNT

FROM customers

WHERE cust income_level !=NULL

AND cust credit_level !=NULL;

B.

SELECT cust_first_name, cust_credit_limit * . 05 AS DUE AMOUNT

FROM customers

WHERE cust income_level IS NOT NULL

AND due_amount IS NOT NULL;

C.

SELECT cust_first_name, cust_credit_limit * . 05 AS DUE AMOUNT

FROM customers

WHERE cust income_level <> NULL

AND due_amount <> NULL;

D.

SELECT cust_first_name, cust_credit_limit * . 05 AS DUE AMOUNT

FROM customers

WHERE cust_income_level IS NOT NULL

AND cust_credit_limit IS NOT NULL;

E.

SELECT cust_first_name, cust_credit_limit * . 05 AS DUE AMOUNT

FROM customers

WHERE cust income_level !=NULL

AND due_amount !=NULL;

Buy Now
Questions 29

The SYSDATE function displays the current Oracle Server date as:

21 -MAY-19

You wish to display the date as:

MONDAY, 21 MAY, 201 9

Which statement will do this?

Options:

A.

SELECT TO _ CHAR (SYSDATE, ' FMDAY, DD MONTH, YYYY') FROM DUAL;

B.

SELECT TO _ DATE (SYSDATE, ' FMDAY, DD MONTH, YYYY') FROM DUAL;

C.

SELECT TO_ CHAR (SYSDATE, ' FMDD, DAY MONTH, YYYY') FROM DUAL;

D.

SELECT TO_ CHAR (SYSDATE, ' FMDAY, DDTH MONTH, YYYY') FROM DUAL;

Buy Now
Questions 30

Which two are true about transactions in the Oracle Database?

Options:

A.

DDL statements automatically commit only data dictionary updates caused by executing the DDL.

B.

A DDL statement issued by a session with an uncommitted transation automaticall commits that transaction.

C.

An uncommitted transaction is automatically committed when the user exits SQL*PLUS

D.

DML statements always start new transactions.

E.

A session can see uncommitted updates made by the same user in a different session

Buy Now
Questions 31

Examine this SQL statement:

1z0-071 Question 31

Which two are true?

Options:

A.

The subquery is executed before the UPDATE statement is executed.

B.

All existing rows in the ORDERS table are updated.

C.

The subquery is executed for every updated row in the ORDERS table.

D.

The UPDATE statement executes successfully even if the subquery selects multiple rows.

E.

The subquery is not a correlated subquery.

Buy Now
Questions 32

Which two statements are true about an Oracle database?

Options:

A.

A table can have multiple primary keys.

B.

A table can have multiple foreign keys.

C.

A NUMBER column without data has a zero value.

D.

A column definition can specify multiple data types.

E.

A VARCHAR2 column without data has a NULL value.

Buy Now
Questions 33

Which three statements are true about sequences in a single instance Oracle database?

Options:

A.

A sequence's unallocated cached values are lost if the instance shuts down.

B.

Two or more tables cannot have keys generated from the same sequence.

C.

A sequence number that was allocated can be rolled back if a transaction fails.

D.

A sequence can issue duplicate values.

E.

Sequences can always have gaps.

F.

A sequence can only be dropped by a DBA.

Buy Now
Questions 34

Which two statements are true about views?

Options:

A.

Views can be indexed.

B.

Theethi CHEcK clause prevents certalin rows from being updated or inserted in the underying table through the view.

C.

Tables in the defining query of a view must always exist in order to create the view.

D.

Views can be updated without the need to re-grant privileges on the view.

E.

The wITH CHECK clause prevents certain rows from being displayed when querying the view.

Buy Now
Questions 35

Examine the data in the EMP table:

1z0-071 Question 35

You execute this query:

SELECT deptno AS "Department", AVG(sal) AS AverageSalary, MAX(sal) AS "Max Salary"

FROM emp

WHERE sal >= 12000

GROUP BY "Department "

ORDER BY AverageSalary;

Why does an error occur?

Options:

A.

An alias name must not be used in an ORDER BY clause.

B.

An allas name must not contain space characters.

C.

An alias name must not be used in a GROUP BY clause.

D.

An alias name must always be specified in quotes.

Buy Now
Questions 36

Which three are true about system and object privileges

Options:

A.

WITH GRANT OPTION can be used when granting an object privilege to both users and roles

B.

WITH GRANT OPTION cannot be used when granting an object privilege to PUBLIC

C.

Revoking a system privilege that was granted with the WITH ADMIN OPTION has a cascading effect.

D.

Revoking an object privilege that was granted with the WITH GRANT OPTION clause has a cascading effect

E.

Adding a primary key constraint to an existing table in another schema requires a system privilege

F.

Adding a foreign key constraint pointing to a table in another schema requires the REFERENCEs object privilege

Buy Now
Questions 37

Examine the description of the employees table:

1z0-071 Question 37

Examine these requirements:

1- Display the last name, date of hire and the number of years of service for each employee.

2. If the employee has been employed 5 or more years but less than 10, display -5+ years of service".

3. If the employee has been employed 10 or more years but less than 15, display "10+ years of

service".

4. If the employee has been employed 15 or more years, display "15-*- years of service".

5. If none of these conditions matches, display "<5 years of service".

6. Sort the results by the hire_date column.

Which statement satisfies all the requirements?

A)

1z0-071 Question 37

B)

1z0-071 Question 37

C)

1z0-071 Question 37

D)

1z0-071 Question 37

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 38

Examine this query which executes successfully:

SELECT job, deptno FROM emp

UNION ALL

SELECT job, deptno FROM jobs_ history;

What will be the result?

Options:

A.

It will return rows common to both SELECT statements.

B.

It will return rows from both SELECT statements after eliminating duplicate rows.

C.

It will return rows that are not common to both SELECT statements.

D.

It will return rows from both SELECT statements including duplicate rows.

Buy Now
Questions 39

Examine the description of EMPLOYEES table:

Which three queries return all rows for which SALARY+COMMISSION is greate than 20000?

Options:

A.

SELECT * FROM employees WHERE salary+NULLF(commission,0)>=20000;

B.

SELECT * FROM employees WHERE salary+NVL2(commission,commission,0)>=20000;

C.

SELECT * FROM employees WHERE NVL2(salary)+commission,salary+commission,

D.

SELECT * FROM employees WHERE salary+NVL(commission,0)>=20000;

E.

SELECT * FROM employees WHERE NVL(salary+commission,0)>=20000;

F.

SELECT * FROM employees WHERE NVL(salary+commission,0)>==20000;

Buy Now
Questions 40

You own table DEPARTMENTS, referenced by views, indexes, and synonyms.

Examine this command which executes successfully:

DROP TABLE departments PURGE;

Which three statements are true?

Options:

A.

Neither can it be rolled back nor can the DEPARTMENTS table be recovered.

B.

It will remove all views that are based on the DEPARTMENTS table.

C.

It will delete all rows from the DEPARTMENTS table, but retain the empty table.

D.

It will remove the DE PARTMENTS table from the database.

E.

It will remove all synonyms for the DEPARTMENTS table.

F.

It will drop all indexes on the DEPARTMENTS table.

Buy Now
Questions 41

Which two are true about the WITH GRANT OPTION clause?

Options:

A.

The grantee can grant the object privilege to any user in the database, with of without including this option.

B.

The grantee must have the GRANT ANY OBJECT PRIVILEGE system prvilege to use this option.

C.

It can be used when granting privileges to roles.

D.

It can be used for system and object privileges.

E.

It cannot be used to pass on privileges to PUBLIC by the grantee.

F.

It can be used to pass on privileges to other users by the grantee.

Buy Now
Questions 42

Which two are SQL features?

Options:

A.

providing graphical capabilities

B.

providing variable definition capabilities.

C.

providing database transaction control

D.

processing sets of data

E.

providing update capabilities for data in external files

Buy Now
Questions 43

Which two are true about queries using set operators such as UNION?

Options:

A.

An expression in the first SELECT list must have a column alias for the expression

B.

CHAR columns of different lengths used with a set operator retum a vAacsua mhtoe e equals the longest CHAR value.

C.

Queries using set operators do not perform implicit conversion across data type groups (e.g. character, numeric)

D.

In a query containing multiple set operators INTERSECT always takes precedence over UNION and UNION ALL

E.

All set operators are valid on columns all data types.

Buy Now
Questions 44

You execute these commands:

CREATE TABLE customers (customer id INTEGER, customer name VARCHAR2 (20));

INSERT INTO customers VALUES (1,‘Custmoer1 ‘);

SAVEPOINT post insert;

INSERT INTO customers VALUES (2, ’Customer2 ‘);

SELECTCOUNT (*) FROM customers;

Which two, used independently, can replace so the query retums 1?

Options:

A.

ROLLBACK;

B.

COMMIT;

C.

ROLIBACK TO SAVEPOINT post_ insert;

D.

CONOIT TO SAVEPOINT post_ insert;

E.

ROLLEBACK TO post_ insert;

Buy Now
Questions 45

Examine these statements:

CREATE TABLE alter_test (c1 VARCHAR2(10), c2 NUMBER(10));

INSERT INTO alter_test VALUES ('123', 123);

COMMIT;

Which is true ahout modifyIng the columns in AITER_TEST?

Options:

A.

c1 can be changed to NUMBER(10) and c2 can be changed to VARCHAN2 (10).

B.

c2 can be changed to NUMBER(5) but c1 cannot be changed to VARCHAN2 (5).

C.

c2 can be changed to VARCHAR2(10) but c1 cannot be changed to NUMBER (10).

D.

c1 can be changed to NUMBER(10) but c2 cannot be changed to VARCHAN2 (10).

E.

c1 can be changed to VARCHAR2(5) and c2 can be changed to NUMBER (12,2).

Buy Now
Questions 46

Which two are true about multiple table INSERT statements?

Options:

A.

They always use subqueries.

B.

They can transform a row from a source table into multiple rows in a target table.

C.

The conditional INSERT FIRST statement always inserts a row into a single table.

D.

The conditional INSERT ALL statement inserts rows into a single table by aggregating source rows.

E.

The unconditional INSERT ALL statement must have the same number of columns in both the source and target tables.

Buy Now
Questions 47

Which two are true about global temporary tables?

Options:

A.

They can be created only by a user with the DBA role,but can be accessed by all users who can create a session.

B.

Backup and recovery operations are available for these tables.

C.

If the ON COMMIT clause is session-specific,the table is dropped when the session is terminated.

D.

Their data is always stored in the default temporary tablespace of the user who created them.

E.

Indexes can be created on them.

F.

If the ON COMMIT clause Is transaction-specific, all rows in the table are deleted alter each COMMIT or ROLLBACK.

Buy Now
Questions 48

Examine the data in the EMPLOYEES table:

1z0-071 Question 48

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:

Buy Now
Questions 49

Which two are true about using constraints?

Options:

A.

A FOREIGN KEY column in a child table and the referenced PRIMARY KEY column in the parenttable must have the same names.

B.

A table can have multiple PRIMARY KEY and multiple FOREIGN KEY constraints.

C.

A table can have only one PRIMARY KEY and one FOREIGN KEY constraint.

D.

PRIMARY KEY and FOREIGNY constraints can be specified at the column and at the table level

E.

A table can have only one PRIMARY KEY but may have multiple FOREIGN KEY constraints.

F.

NOT NULL can be specified at the column and at the table level.

Buy Now
Questions 50

Examine these requirements:

1. Display book titles for books purchased before January 17, 2007 costing less than 500 or more than 1000.

2. Sort the titles by date of purchase, starting with the most recently purchased book.

Which two queries can be used?

Options:

A.

SELECT book_title FROM books WHERE (price< 500 OR >1000) AND (purchase date< '17-JAN-2007') ORDER BY purchase date DESC;

B.

SELECT book_title FROM books WHERE (price IN (500, 1000)) AND (purchase date < '17-JAN-2007') ORDER BY purchase_date ASC;

C.

SELECT book_title FROM books WHERE (price NOT BETWEEN 500 AND 1000) AND (purchase_date< '17-JAN-2007') ORDER BY purchase_date DESC;

D.

SELECT book_title FROM books WHERE (price BETWEEN 500 AND 1000) AND (purchase_date<'17-JAN-2007') ORDER BY purchase_date;

Buy Now
Questions 51

1z0-071 Question 51

Which two queries only return CUBE?

Options:

A.

SELECT shape FROM bricks JOIN boxes ON weight >= min_weight AND weight < max_weight;

B.

SELECT shape FROM bricks JOIN boxes ON weight > min_weight;

C.

SELECT shape FROM bricks JOIN boxes ON weight BETWEEN min_weight AND max_weight;

D.

SELECT shape FROM bricks JOIN boxes ON weight < max_weight;

E.

SELECT shape FROM bricks JOIN boxes ON NOT (weight > max_weight);

Buy Now
Questions 52

Whith three statements are true about built in data types?

Options:

A.

A VARCHAR2 blank pads column values only if the data stored is non numeric and contains no special characlers

B.

A BFILE stores unstructured binary data in operating systerm files

C.

A CHAR column definition does not require the length to be specified

D.

The default length for a CHAR column is always one character

E.

A VARCHAR2 column definition does not require the length to be specified

F.

A BLOB stores unstructured binary data within the database

Buy Now
Questions 53

The CUSTOMERS table has a CUST_LAST_NAME column of data type VARCHAR2.

The table has two rows whose COST_LAST_MANE values are Anderson and Ausson.

Which query produces output for CUST_LAST_SAME containing Oder for the first row and Aus for the second?

Options:

A.

SELECT REPLACE (REPLACE(cust_last_name,'son',''),'An','O') FROM customers;

B.

SELECT REPLACE (TRIM(TRALING'son' FROM cust_last_name),'An','O') FROM customers;

C.

SELECT INITCAP (REPLACE(TRIM('son' FROM cust_last_name),'An','O')) FROM customers;

D.

SELECT REPLACE (SUBSTR(cust_last_name,-3),'An','O') FROM customers;

Buy Now
Questions 54

Which two statements will do an implicit conversion?

Options:

A.

SELECT * FROM customers WHERE customer_ id = 0001 ;

B.

SELECT * FROM customers WHERE customer id = ‘0001’;

C.

SELECT * FROM customers WHERE insert_ date = DATE ‘2019-01-01’;

D.

SELECT * FROM customers WHERE insert date =’01-JAN-19’

E.

SELECT * FROM customers WHERE TO_ CHAR (customer_ id) =’0001’;

Buy Now
Questions 55

You create a table by using this command:

CREATE TABLE rate_list (rate NUMBER(6,2));

Which two are true about executing statements?

Options:

A.

INSERT INTO rate_list VALUES (-.9) inserts the value as -.9.

B.

INSERT INTO rate_list VALUES (0.999) produces an error.

C.

INSERT INTO rate_list VALUES (-10) produces an error.

D.

INSERT INTO rate_list VALUES (87654. 556) inserts the value as 87654.6.

E.

INSERT INTO rate_list VALUES (0.551) inserts the value as .55.

F.

INSERT INTO rate_list VALUES (-99.99) inserts the value as 99.99.

Buy Now
Questions 56

Which three actions can you perform on an existing table containing date?

Options:

A.

Add a new column as the table's first column.

B.

Define a default value that is automatically inserted into a column containing nulls.

C.

Add a new NOT NULL Column with a DEFAULT value.

D.

Change a DATE Column containing data to a NUMBER data type.

E.

Increase the width of a numeric column.

F.

Change the default value of a column.

Buy Now
Questions 57

Which three statements are true about indexes and their administration in an Oracle database?

Options:

A.

An INVISIBLE index is not maintained when Data Manipulation Language (DML) is performed on its underlying table.

B.

An index can be created as part of a CREATE TABLE statement.

C.

A DROP INDEX statement always prevents updates to the table during the drop operation

D.

A UNIQUE and non-unique index can be created on the same table column

E.

A descending index is a type of function-based index

F.

If a query filters on an indexed column then it will always be used during execution of the query

Buy Now
Questions 58

Which three statements about roles are true?

Options:

A.

Roles are assigned to roles using the ALTER ROLE Statement

B.

A role is a named group of related privileges that can only be assigned to a user

C.

Roles are assigned to users using the ALTER USER statement

D.

A single role can be assigned to multiple users.

E.

A single user can be assigned multiple roles

F.

Privileges are assigned to a role using the ALTER ROLE statement.

G.

Privileges are assigned to a role using the GRANT statement.

Buy Now
Questions 59

Examine the description of the BOOKS_TRANSACTIONS table:

1z0-071 Question 59

Examine this partial SQL statement:

SELECT * FROM books_transactions

Which two WHERE conditions give the same result?

Options:

A.

WHERE (borrowed_date = SYSDATE AND transaction_type = 'RM') OR member_id IN ('A101','A102');

B.

WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' OR member_id IN('A101','A102');

C.

WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' OR member_id IN('A101','A102');

D.

WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' AND (member_id = 'A101' OR member_id = 'A102'));

E.

WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' AND member_id = 'A101' OR member_id = 'A102');

Buy Now
Questions 60

An Oracle database server session has an uncommitted transaction in progress which updated 5000 rows

in a table.

In which three situations does the transact ion complete thereby committing the updates?

Options:

A.

When the session logs out is successfully

B.

When a DBA issues a successful SHUTDOWN IMMEDIATE statement and the user then issues a COMMIT

C.

When a CREATE INDEX statement is executed successfully in same session

D.

When a COMMIT statement is issued by the same user from another session in the same database instance

E.

When a CREATE TABLE AS SELECT statement is executed unsuccessfully in the same session

F.

When a DBA issues a successful SHUTDOWN TRANSACTIONAL statement and the user, then issues a COMMIT

Buy Now
Questions 61

Examine the description of the ENPLOYES table:

1z0-071 Question 61

Which query requires explicit data type conversion?

Options:

A.

SELECT SUBSTR(join date, 1, 2) - 10 FROM employees;

B.

SELECT join_ date + '20' EROM employees;

C.

SELECT join_ date丨丨‘’丨丨 salary FROM employees;

D.

SELECT join _ date FROM employees WHERE join date > *10-02-2018';

E.

SELECT salary + '120.50' FROM employees;

Buy Now
Questions 62

Which two statements are true about the WHERE and HAVING clauses in a SELECT statement?

Options:

A.

The WHERE clause can be used to exclude rows after dividing them into groups

B.

WHERE and HAVING clauses can be used in the same statement only if applied to different table columns.

C.

The HAVING clause can be used with aggregating functions in subqueries.

D.

Aggregating functions and columns used in HAVING clauses must be specified in these SELECT list of a query.

E.

The WHERE clause can be used to exclude rows before dividing them into groups.

Buy Now
Questions 63

Which two are true about queries using set operators (UNION, UNION ALL, INTERSECT and MINUS)?

Options:

A.

There must be an equal number of columns in each SELECT list.

B.

The name of each column in the first SELECT list must match the name of the corresponding column in each subsequent SELECT list.

C.

Each SELECT statement in the query can have an ORDER BY clause.

D.

None of the set operators can be used when selecting CLOB columns.

E.

The FOR UPDATE clause cannot be specified.

Buy Now
Questions 64

Which statement is true about aggregate functions?

Options:

A.

The AVG function implicitly converts NULLS to zero

B.

The MAX and MIN functions can be used on columns with character data types

C.

Aggregate functions can be used in any clause of a SELECT statement

D.

Aggregate functions can be nested to any number of levels

Buy Now
Questions 65

The STORES table has a column START_ DATE of data type DATE, containing the date the row was inserted.

You only want to display details of rows where START_ DATE is within the last 25 months.

Which WHERE clause can be used?

Options:

A.

WHERE MONTHS_ BETWEEN (SYSDATE, start_ date) <= 25

B.

WHERE MONTHS_ BETWEEN (start_ date, SYSDATE) <= 25

C.

WHERE TO_ NUMBER (start_ date - SYSDATE) <= 25

D.

WHERE ADD_ MONTHS (start_ date, 25) <= SYSDATE

Buy Now
Questions 66

Evaluate the following SQL statement

SQL>SELECT promo_id, prom _category FROM promotions

WHERE promo_category=’Internet’ ORDER BY promo_id

UNION

SELECT promo_id, promo_category FROM Pomotions

WHERE promo_category = ‘TV’

UNION

SELECT promoid, promocategory FROM promotions WHERE promo category=’Radio’

Which statement is true regarding the outcome of the above query?

Options:

A.

It executes successfully and displays rows in the descend ignore of PROMO CATEGORY.

B.

It produces an error because positional, notation cannot be used in the ORDER BY clause with SBT operators.

C.

It executes successfully but ignores the ORDER BY clause because it is not located at the end of the compound statement.

D.

It produces an error because the ORDER BY clause should appear only at the end of a compound query-that is, with the last SELECT statement.

Buy Now
Questions 67

Which three statements are true about multiple row subqueries?

Options:

A.

They can contain HAVING clauses.

B.

Two or more values are always returned from the subquery.

C.

They cannot contain subquery.

D.

They can return multiple columns.

E.

They can contain GROUP BY clauses.

Buy Now
Questions 68

Which two statements are true about a full outer join?

Options:

A.

It includes rows that are returned by an inner join.

B.

The Oracle join operator (+) must be used on both sides of the join condition in the WHERE clause.

C.

It includes rows that are returned by a Cartesian product.

D.

It returns matched and unmatched rows from both tables being joined.

E.

It returns only unmatched rows from both tables being joined.

Buy Now
Questions 69

Examine the description of the EMPLOYEES table:

1z0-071 Question 69

Examine this query:

1z0-071 Question 69

Which line produces an error?

Options:

A.

Line 7

B.

Line 8

C.

Line 3

D.

Line 5

Buy Now
Questions 70

Examine this data in the EMPLOYERS table:

1z0-071 Question 70

Which statement will execute successfully?

Options:

A.

SELECT dept_id, MAX (Last_name), SUM (salary) FROM employees GROUP BY dept_id

B.

SELECT dept_id, LENGTH (last_name), SUM (salary) FROM employees GROUP BY dept_id

C.

SELECT dept_id, STDDEV (last_name), SUM (salary) FROM employees GROUP BY dept_id

D.

SELECT dept_id, INSTR (last_name,'A'), SUM (salary) FROM employees GROUP BY dept_id

Buy Now
Questions 71

Which two queries execute successfully?

Options:

A.

SELECT prod_id, exp_date FROM products

UNION ALL

SELECT prod_id, NULL FROM new_products;

B.

SELECT prod_id, prod_name FROM products

INTERSECT

SELECT 100, prod_name FROM newproducts;

C.

SELECT * FROM products

UNION

SELECT * FROM new_products;

D.

SELECT k FROM products

MINUS

SELECT prod_id FROM new_products;

E.

SELECT prod_id FROM products

UNION ALL

SELECT prod_id, prod_name FROM new_products;

Buy Now
Questions 72

Examine the description of the EMPLOYEES table:

1z0-071 Question 72

Which two queries return rows for employees whose manager works in a different department?

Options:

A.

SELECT emp. *

FROM employees emp

WHERE manager_ id NOT IN (

SELECT mgr.employee_ id

FROM employees mgr

WHERE emp. department_ id < > mgr.department_ id

);

B.

SELECT emp.*

FROM employees emp

WHERE NOT EXISTS (

SELECT NULL

FROM employees mgr

WHERE emp.manager id = mgr.employee_ id

AND emp.department_id<>mgr.department_id

);

C.

SELECT emp.*

FROM employees emp

LEFT JOIN employees mgr

ON emp.manager_ id = mgr.employee_ id

AND emp. department id < > mgr. department_ id;

D.

SELECT emp. *

FROM employees emp

RIGHT JOIN employees mgr

ON emp.manager_ id = mgr. employee id

AND emp. department id <> mgr.department_ id

WHERE emp. employee_ id IS NOT NULL;

E.

SELECT emp. *

FROM employees emp

JOIN employees mgr

ON emp. manager_ id = mgr. employee_ id

AND emp. department_ id<> mgr.department_ id;

Buy Now
Questions 73

Examine the description of the PRODUCT_STATUS table:

1z0-071 Question 73

The STATUS column contains the values 'IN STOCK' or 'OUT OF STOCK' for each row

Which two queries will execute successfully?

Options:

A.

SELECT prod_id "CURRENT AVAILABILITY" || q'('s not available)' FROM product_status WHERE status = ’OUT OF STOCK';

B.

SELECT prod_id || q's not available'' FROM product_status WHERE status=’OUT OF STOCK’;

C.

SELECT prod_id || q'('s not available)’ "CURRENT AVAILABILITY" FROM product_status WHERE status = 'OUT OF STOCK';

D.

SELECT prod_id || q'('s not available)' FROM product_status WHERE status = ’OUT OF STOCK’;

E.

SELECT prod_id || q’(’s not available)' 'CURRENT AVAILABILITY' FROM product_status WHERE status = 'OUT OF STOCK';

F.

SELECT prod_id || q"'s not available" FROM product_status WHERE status = 'OUT OF STOCK';

Buy Now
Questions 74

Which two are true about external tables that use the ORACLE _DATAPUMP access driver?

Options:

A.

Creating an external table creates a directory object.

B.

When creating an external table, data can be selected only from a table whose rows are stored in database blocks.

C.

When creating an external table, data can be selected from another external table or from a table whose rows are stored in database blocks.

D.

Creating an external table creates a dump file that can be used by an external table in the same or a different database.

E.

Creating an external table creates a dump file that can be used only by an external table in the same database.

Buy Now
Questions 75

Examine these statements executed in a single Oracle session:

CREATE TABLE product (pcode NUMBER(2),pname VARCHAR2(20));

INSERT INTO product VALUES(1,'pen');

INSERT INTO product VALUES (2,'pencil');

INSERT INTO product VALUES(3,'fountain pen');

SAVEPOINT a;

UPDATE product SET pcode=10 WHERE pcode =1;

COMMIT;

DELETE FROM product WHERE pcode =2;

SAVEPOINT b;

UPDATE product SET pcode=30 WHERE pcode =3;

SAVEPOINT c;

DELETE FROM product WHERE pcode =10;

ROLLBACK TO SAVEPOINT b;

COMMIT;

Which three statements are true?

Options:

A.

The code for pen is 10.

B.

There is no row containing fountain pen.

C.

There is no row containing pencil.

D.

The code for pen is 1.

E.

The code for fountain pen is 3

F.

There is no row containing pen

Buy Now
Questions 76

Examine this description of the PRODUCTS table:

You successfully execute this command:

CREATE TALE new_prices(prod_id NUBER(2),price NUMBER(8,2));

Which two statements execute without errors?

Options:

A.

MERGE INTO new_prices n

USING(SELECT*FROM products)p

WHEN MATECHED THEN

UPDATE SET n.price=p.cost*.01

WHEN NOT MATCHED THEN

INSERT(n.prod_id,n.price)VALUES (p.prod_id,cost*01)

WHERE(p.cost<200);

B.

MERGE INTO new_prices n

USING(SELECT*FROM product WHERE cost>150) p

ON (n.prod_id=p.prod_id)

WHEN NATCHED THEN

DELETE WHERE(p.cost<200)

WHEN NOT MATCHED THEN

INSERT (n.prod_id,n.price)VALUES (p.prod_id,p.cost*.01);

C.

MERGE INTO new_prices n

USING (SELECT * FROM products WHERE cost>150) p

ON (n.prod_id=p.prod_id)

WHEN NATCHED THEN

UPDATE SET n.price=p.cost*.01

DELETE WHERE (p.cost<200);

D.

MERGE INTO new_prices n

USING products p

WHEN NOT NATCHED THEN

INSERT (n.prod_id, n.price)VALUES (p.prod_id,cost*.01)

WHERE (p.cost <200);

Buy Now
Questions 77

Examine the data in the COLORS table:

1z0-071 Question 77

Examine the data in the BRICKS table:

1z0-071 Question 77

Which two queries return all the rows from COLORS?

Options:

A.

1z0-071 Question 77 Option 1

B.

77

C.

77

D.

77

E.

77

Buy Now
Questions 78

Which three statements are true about GLOBAL TEMPORARY TABLES?

Options:

A.

A GLOBAL TEMPORARY TABLE cannot have PUBLIC SYNONYM.

B.

A GLOBAL TEMPORARY TABLE can have multiple indexes

C.

A GLOBAL TEMPORARY TABLE can be referenced in the defining query of a view.

D.

Data Manipulation Language (DML) on GLOBAL TEMPORARY TABLES generates no REDO.

E.

A GLOBAL TEMPORARY TABLE can have only one index.

F.

A trigger can be created on a GLOBAL TEMPORARY TABLE

Buy Now
Questions 79

Examine the description of the EMPLOYEES table:

1z0-071 Question 79

Which statement will fail?

Options:

A.

SELECT department_id, COUNT (*)

FROM employees

HAVING department_ id <> 90 AND COUNT(*) >= 3

GROUP BY department_id;

B.

SELECT department_id, COUNT (*)

FROM employees

WHERE department_ id <> 90 AND COUNT(*) >= 3

GROUP BY department_id;

C.

SELECT department_id, COUNT(*)

FROM employees

WHERE department_id <> 90 HAVING COUNT(*) >= 3

GROUP BY department_id;

D.

SELECT department_id, COUNT(*)

FROM employees

WHERE department_id <> 90 GROUP BY department_id

HAVING COUNT(*) >= 3;

Buy Now
Questions 80

Examine the description of the BOOKS_TRANSACTIONS table:

1z0-071 Question 80

Which two WHERE conditions give the same result?

Options:

A.

WHERE borrowed_date = SYSDATE AND (transaction_type ='RM' OR member_id IN ('A101','A102'));

B.

WHERE borrowed_date = SYSDATE AND transaction_type ='RM' OR member_id IN ('A101','A102');

C.

WHERE borrowed_date = SYSDATE AND (transaction_type ='RM' AND member_id='A101' OR member_id ='A102'));

D.

WHERE (borrowed_date = SYSDATE AND transaction_type ='RM') OR member_id IN ('A101','A102');

E.

WHERE borrowed_date = SYSDATE AND (transaction_type ='RM' AND (member_id ='A101' OR member_id ='A102') );

Buy Now
Questions 81

Which two queries execute successfully?

Options:

A.

SELECT NULLIF(100, 100) FROM DUAL;

B.

SELECT COALESCE(100, NULL, 200) FROM DUAL;

C.

SELECT NULLIF(100, 'A') FROM DUAL;

D.

SELECT NULLIF(NULL, 100) FROM DUAL;

E.

SELECT CO ALESCE(100, 'A' ) FROM DUAL;

Buy Now
Questions 82

Examine the description of the EMPLOYEES table:

1z0-071 Question 82

Which statement will execute successfully, returning distinct employees with non-null first names?

Options:

A.

SELECT DISTINCT * FROM employees WHERE first_ name IS NOT NULL;

B.

SELECT first_ name, DISTNCT last_ name FROM employees WHERE first_ name IS NOT NULL;

C.

SELECT Distinct * FROM employees WHERE first_ name < > NULL;

D.

SELECT first_ name, DISTINCT last_ name FROM employees WHERE first_ name < > NULL;

Buy Now
Questions 83

Examine the description products table:

1z0-071 Question 83

Examine the description of the new_projects table;

1z0-071 Question 83

Which two queries execute successfully?

A)

1z0-071 Question 83

B)

1z0-071 Question 83

C)

1z0-071 Question 83

D)

1z0-071 Question 83

E)

1z0-071 Question 83

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Buy Now
Questions 84

Which two are true about creating tables in an Oracle database?

Options:

A.

A create table statement can specify the maximum number of rows the table will contain.

B.

The same table name can be used for tables in different schemas.

C.

A system privilege is required.

D.

Creating an external table will automatically create a file using the specified directory and file name.

E.

A primary key constraint is manadatory.

Buy Now
Questions 85

Examine the description of the PROMTIONS table:

1z0-071 Question 85

You want to display the unique promotion costs in each promotion category.

Which two queries can be used?

Options:

A.

SELECT promo_cost, | pxomo_category FROM promotions ORDER BY 1;

B.

SELECT promo_category, DISTINCT promo_cost PROM promotions ORDER BY 2:

C.

SELECT DISTINCT promo_category ||'has’|| promo_cost AS COSTS FROM promotions ORDER BY 1;

D.

SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;

E.

SELECT DISTINCT promo_cost ||' in' II DISTINCT promo_category FROM promotions ORDER BY 1;

Buy Now
Questions 86

Which two queries return the string Hello! we're ready?

Options:

A.

SELECT q'! Hello! We're ready! 'FROM DUAL;

B.

SELECT "Hello! We're ready "FROM |DUAL;

C.

SELECT q'[Hello! We're ready]'FROM DUAL;

D.

SELECT 'Hello! we\ re ready' ESCAPE'N'FROMDUAL:

E.

SELECT 'Hello! We're ready' FROM DUAL;

Buy Now
Questions 87

1z0-071 Question 87

Which two queries will result in an error?

Options:

A.

SELECT FIRST_NAME LAST_NAME FROM EMPLOYEES;

B.

SELECT FIRST_NAME,LAST_NAME FROM EMPLOYEES;

C.

SELECT LAST_NAME,12 * SALARY AS ANNUAL_SALARY

FROM EMPLOYEES

WHERE ANNUAL_SALARY > 100000

ORDER BY 12 * SALARY ;

D.

SELECT LAST_NAME,12 * SALARY AS ANNUAL_SALARY

FROM EMPLOYEES

WHERE 12 * SALARY > 100000

ORDER BY ANNUAL_SALARY;

E.

SELECT LAST_NAME,12 * SALARY AS ANNUAL_SALARY

FROM EMPLOYEES

WHERE 12 * SALARY > 100000

ORDER BY 12 * SALARY;

F.

SELECT LAST_NAME,12 * SALARY AS ANNUAL_SALARY

FROM EMPLOYEES

WHERE ANNUAL_SALARY > 100000

ORDER BY ANNUAL_SALARY;

Buy Now
Questions 88

Which three are true about the MERGE statement?

Options:

A.

It can merge rows only from tables.

B.

It can use views to produce source rows.

C.

It can combine rows from multiple tables conditionally to insert into a single table.

D.

It can use subqueries to produce source rows.

E.

It can update the same row of the target table multiple times.

F.

It can update, insert, or delete rows conditionally in multiple tables.

Buy Now
Questions 89

You create a table named 123.

Which statement runs successfully?

Options:

A.

SELECT * FROM TABLE (123) ;

B.

SELECT * FROM '123';

C.

SELECT * FROM "123";

D.

SELECT * FROM V'123V';

Buy Now
Questions 90

In your session, the NLS._DAE_FORMAT is DD- MM- YYYY.There are 86400 seconds in a day.Examine

this result:

DATE

02-JAN-2020

Which statement returns this?

Options:

A.

SELECT TO_ CHAR(TO_ DATE(‘29-10-2019’) +INTERVAL ‘2’; MONTH + INTERVAL ‘5’; DAY -

INTERVAL ‘86410’ SECOND, ‘ DD-MON-YYYY’) AS "date"

FROM DUAL;

B.

SELECT TO_ CHAR(TO_ DATE(‘29-10-2019’) + INTERVAL ‘3’ MONTH + INTERVAL ‘7’ DAY -

INTERVAL ‘360’ SECOND, ‘ DD-MON-YYYY’) AS "date"

FROM DUAL;

C.

SELECT To CHAR(TO _DATE(‘29-10-2019’) + INTERVAL ‘2’ NONTH + INTERVAL ‘5’ DAY

INEERVAL ‘120’ SECOND, ‘ DD-MON-YYY) AS "date"

FROM DUAL;

D.

SELECT-TO_CHAR(TO _DATE(‘29-10-2019’+ INTERVAL ‘2’ MONTH+INTERVAL ‘6’ DAYINTERVAL

‘120’ SECOND, ‘DD-MON-YY’) AS "daTe"

FROM DUAL;

E.

SELECT-TO_CHAR(TO _DATE(‘29-10-2019’+ INTERVAL ‘2’ MONTH+INTERVAL ‘4’ DAYINTERVAL

‘120’ SECOND, ‘DD-MON-YY’) AS "daTe"

FROM DUAL;

Buy Now
Questions 91

Examine these SQL statements which execute successfully:

1z0-071 Question 91

Which two statements are true after execution?

Options:

A.

The primary key constraint will be enabled and DEFERRED.

B.

The primary key constraint will be enabled and IMMEDIATE.

C.

The foreign key constraint will be disabled.

D.

The foreign key constraint will be enabled and DEFERRED.

E.

The foreign key constraint will be enabled and IMMEDIATE.

Buy Now
Questions 92

Which two statements are true about date/time functions in a session where NLS_DATE_PORMAT is set to DD-MON-YYYY SH24:MI:SS

Options:

A.

SYSDATE can be used in expressions only if the default date format is DD-MON-RR.

B.

CURRENT_TIMESTAMP returns the same date as CURRENT_DATE.

C.

CURRENT_DATE returns the current date and time as per the session time zone

D.

SYSDATE and CURRENT_DATE return the current date and time set for the operating system of the database server.

E.

CURRENT_TIMESTAMP returns the same date and time as SYSDATE with additional details of functional seconds.

F.

SYSDATE can be queried only from the DUAL table.

Buy Now
Questions 93

Which two statements are true about * _TABLES views?

Options:

A.

You must have ANY TABLE system privileges, or be granted object privilges on the table, to viewa tabl e in DBA TABLES.

B.

USER TABLES displays all tables owned by the current user.

C.

You must have ANY TABLE system privileges, or be granted object privileges on the table, to view a table in USER_TABLES.

D.

ALL TABLES displays all tables owned by the current user.

E.

You must have ANY TABLE system privileges, or be granted object privileges on the table, to view a table in ALL_TABLES.

F.

All users can query DBA_TABLES successfully.

Buy Now
Questions 94

Which two statements are true about the results of using the INTERSECT operator in compound queries?

Options:

A.

Reversing the order of the intersected tables can sometimes affect the output.

B.

Column names in each SELECT in the compound query can be different.

C.

INTERSECT returns rows common to both sides of the compound query.

D.

The number of columns in each SELECT in the compound query can be different.

E.

INTERSECT ignores NULLs

Buy Now
Questions 95

You execute these commands successfully:

CREATE GLOBAL TEMPORARY TABLE invoices _ gtt

( customer id INTEGER,

invoice_ total NUMBER (10, 2)

) ON COMMIT PRESERVE ROWS;

INSERT INTO invoices_ gtt VALUES (1, 100);

COMMIT;

Which two are true?

Options:

A.

You can add a foreign key to the table.

B.

When you terminate your session, the row will be deleted.

C.

To drop the table in this session, you must first truncate it.

D.

You can add a column to the table in this session.

E.

Other sessions can view the committed row.

Buy Now
Questions 96

Which statement is true about the INTERSECT operator used in compound queries?

Options:

A.

It processes NULLS in the selected columns.

B.

INTERSECT is of lower precedence than UNION or UNION ALL.

C.

It ignores NULLS.

D.

Multiple INTERSECT operators are not possible in the same SQL statement.

Buy Now
Questions 97

View the Exhibit and examine the structure of the ORDERS table.

The columns ORDER_MODE and ORDER TOTAL have the default values'direct “and respectively.

Which two INSERT statements are valid? (Choose two.)

Options:

A.

INSERT INTO (SELECT order_id, order date, customer_id FROM orders) VALUES (1, ‘09-mar-2007“,101);

B.

INSERT INTO orders (order_id, order_date, order mode,customer_id, order_total) VALUES (1, TO_DATE (NULL),‘online‘,101, NULL) ;

C.

INSERT INTO orders VALUES (1, ‘09-mar-2007’, ‘online’,’ ’,1000);

D.

INSERT INTO orders (order id, order_date, order mode, order_total)VALUES (1,‘10-mar-2007’,’online’, 1000)

E.

INSERT INTO orders VALUES(‘09-mar-2007’,DEFAULT,101, DEFALLT);

Buy Now
Exam Code: 1z0-071
Exam Name: Oracle Database 12c SQL
Last Update: Dec 4, 2024
Questions: 326

PDF + Testing Engine

$57.75  $164.99

Testing Engine

$43.75  $124.99
buy now 1z0-071 testing engine

PDF (Q&A)

$36.75  $104.99
buy now 1z0-071 pdf
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 04 Dec 2024