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

Oracle PL 1z0-071 Full Course Free

Page: 4 / 24
Total 324 questions

Oracle Database 12c SQL Questions and Answers

Question 13

Which two statements are true about the ORDER BY clause?

Options:

A.

Numeric values are displayed in descending order if they have decimal positions.

B.

Only columns that are specified in the SELECT list can be used in the ORDER BY cause.

C.

NULLS are not included in the sort operation.

D.

Column aliases can be used In the ORDER BY cause.

E.

Ina character sort, the values are case-sensitive.

Question 14

Examine the data in the CUST_NAME column of the CUSTOMERS table:

CUST_NAME

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

Renske Ladwig

Jason Mallin

Samuel McCain

Allan MCEwen

Irene Mikkilineni

Julia Nayer

You want to display the CUST_NAME values where the last name starts with Mc or MC.

Which two WHERE clauses give the required result?

Options:

A.

WHERE UPPER(SUBSTR(cust_name, INSTR(cust_name,’ ’) + 1)) LIKE UPPER('MC%')

B.

WHERE SUBSTR(cust_name, INSTR(cust_name,’ ’) + 1) LIKE 'Mc%’ OR 'MC%’

C.

WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name,’ ’) + 1)) IN (‘MC%’,’Mc%’)

D.

WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name,’ ') + 1)) LIKE ‘Mc%’

E.

WHERE SUBSTR(cust_name, INSTR(cust_name,’ ‘) + 1) LIKE ‘Mc%’

Question 15

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;

Question 16

Which three queries execute successfully?

Options:

A.

SELECT (SYSDATE-DATE '2019-01-01') / 1 FROM DUAL;

B.

SELECT 1 / SYSDATE - DATE '2019-01-01' FROM DUAL;

C.

SELECT SYSDATE / DATE '2019-01-01' - 1 FROM DUAL

D.

SELECT SYSDATE - DATE '2019-01-01' - 1 FROM DUAL;

E.

SELECT 1 – SYSDATE- DATE '2019-01-01' FROM DUAL;

F.

SELECT SYSDATE - 1 - DATE'2019-01-01' EROM DUAL;

Page: 4 / 24
Total 324 questions