Labour Day - 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 description of the EMPLOYEES table:

1z0-071 Question 4

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;

Buy Now
Questions 5

Examine this partial statement:

SELECT ename, sal,comm FROM emp

Now examine this output:

1z0-071 Question 5

WHICH ORDER BY clause will generate the displayed output?

Options:

A.

ORDER BY NVL(enam,0) DESC, ename

B.

ORDER BY NVL(comm,0) ASC NULLS FIRST, ename

C.

ORDER BY NVL(comm,0) ASC NULLS LAST, ename

D.

ORDER BY comm DESC NULLS LAST, ename

Buy Now
Questions 6

Examine the data in the COLORS table:

1z0-071 Question 6

Examine the data in the BRICKS table:

1z0-071 Question 6

Which two queries return all the rows from COLORS?

Options:

A.

1z0-071 Question 6 Option 1

B.

6

C.

6

D.

6

E.

6

Buy Now
Questions 7

Which three statements are true about a self join?

Options:

A.

It must be an inner join.

B.

It must be an equijoin.

C.

The query must use two different aliases for the table.

D.

The on clause can be used.

E.

The on clause must be used.

F.

It can be an outer join.

Buy Now
Questions 8

Examine the description of the EMPLOYEES table:

1z0-071 Question 8

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 9

Which two statements are true about INTERVAL data types

Options:

A.

INTERVAL YEAR TO MONTH columns only support monthly intervals within a range of years.

B.

The value in an INTERVAL DAY TO SECOND column can be copied into an INTERVAL YEAR TO MONTH column.

C.

INTERVAL YEAR TO MONTH columns only support monthly intervals within a single year.

D.

The YEAR field in an INTERVAL YEAR TO MONTH column must be a positive value.

E.

INTERVAL DAY TO SECOND columns support fractions of seconds.

F.

INTERVAL YEAR TO MONTH columns support yearly intervals.

Buy Now
Questions 10

Which two statements are true regarding the UNION ALL operators?

Options:

A.

NULLS are not ignored during duplicate checking.

B.

Duplicates are eliminated automatically by the UNION ALL operator

C.

The names of columns selected in each SELECT statement must be identical.

D.

The number of columns selected in each SELECT statement must be identical

E.

The output is sorted by the UNION ALL operator.

Buy Now
Questions 11

Examine the description of the PRODUCTS table:

1z0-071 Question 11

Which three queries use valid expressions?

Options:

A.

SELECT produet_id, unit_pricer, 5 "Discount",unit_price+surcharge-discount FROM products;

B.

SELECT product_id, (unit_price * 0.15 / (4.75 + 552.25)) FROM products;

C.

SELECT ptoduct_id, (expiry_date-delivery_date) * 2 FROM products;

D.

SPLECT product_id, expiry_date * 2 FROM products;

E.

SELEGT product_id, unit_price, unit_price + surcharge FROM products;

F.

SELECT product_id,unit_price || "Discount", unit_price + surcharge-discount FROM products;

Buy Now
Questions 12

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 13

Which two are true about rollbacks?

Options:

A.

The ROLLBACK statement does not release locks resulting from table updates.

B.

Data Control L anguage (DCL) statements, such as GRANT and REVOKE, can be rolled back.

C.

A transaction interrupted by a system failure is automatically rolled back.

D.

If the ROLLBACK statement is used without TO SAVEPOINT, then all savepoints in the transaction are deleted .

E.

Data consistency is not guaranteed after a rollback.

Buy Now
Questions 14

Viev the Exhibit and examine the structure of the PRODUCT INFORMATION and INVENTORIEStables.

You have a requirement from the supplies department to give a list containing PRODUCT _ID,SUPPLIER ID, and QUANTITY_ON HAND for all the products where in QUANTITY ON HAND is lessthan five.

Which two SQL statements can accomplish the task? (Choose two)

Options:

A.

SELECT product id, quantity on hand, supplier id

FROM product information

NATURAL JOIN inventories AND quantity .on hand < 5;

B.

SELECT i. product id, i. quantity .on hand, pi. supplier_id

FROM product_information pi JOIN inventories i

ON (pi. product. id=i. product id) AND quantity on hand < 5;

C.

SELECT i. product_id, i. quantity_on hand, pi. supplier id

FROM product information pi JOIN inventories i USING (product id) AND quantity .on hand < 5;

D.

SELECT i.product id, i. quantity on hand, pi. supplier id

FROM product information pi JOIN inventories i

ON (pi.product id=i. product id)WHERE quantity on hand < 5;

Buy Now
Questions 15

Which statement will execute successfully?

Options:

A.

SELECT 1, 2 FROM DUAL

UNION

SELECT 3, 4 FROM DUAL

ORDER BY 1, 2;

B.

SELECT 3 FROM DUAL

UNION

SELECT 4 FROM DUAL

ORDER BY 3 ;

C.

SELECT 1, 2 FROM DUAL

UNION

SELECT 3, 4 FROM DUAL

ORDER BY 3, 4;

D.

SELECT 1 FROM DUAL

UNION

SELECT 2 FROM DUAL

ORDER BY 1, 2;

Buy Now
Questions 16

Examine the description of the transactions table:

1z0-071 Question 16

Which two SQL statements execute successfully?

Options:

A.

SELECT customer_id AS "CUSTOMER-ID", transaction_date AS DATE, amount+100 "DUES" from transactions;

B.

SELECT customer_id AS 'CUSTOMER-ID',transaction_date AS DATE, amount+100 'DUES' from transactions;

C.

SELECT customer_id CUSTID, transaction_date TRANS_DATE,amount+100 DUES FROM transactions;

D.

SELECT customer_id AS "CUSTOMER-ID", transaction_date AS "DATE", amount+100 DUES FROM transactions;

E.

SELECT customer id AS CUSTOMER-ID, transaction_date AS TRANS_DATE, amount+100 "DUES AMOUNT" FROM transactions;

Buy Now
Questions 17

Which two statements cause changes to the data dictionary?

Options:

A.

DELETE FROM scott. emp;

B.

GRANT UPDATE ON scott. emp TO fin manager;

C.

AITER SESSION set NLs. _DATE FORMAT = 'DD/MM/YYYY';

D.

TRUNCATE TABLE emp:

E.

SELECT * FROM user_ tab._ privs;

Buy Now
Questions 18

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 19

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

You only want to display details of rows where START_DATEis within the last 25 months.which WHERE clause can be used?

Options:

A.

WHERE TO_NUMBER(start_date - SYSDATE)<=25

B.

WHERE ADD_MONTHS (start date , 25)<= SYSDATE

C.

WHERE MONTHS_BETWEEN(SYSDATE, start_date)<=25

D.

WHERE MONTHS_BETWEEN (start_date, SYSDATE)<=25

Buy Now
Questions 20

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 21

Examine this business rule:

Each student can work on multiple projects and each project can have multiple students.

You must design an Entity Relationship(ER) model for optimal data storage and allow for generating reports in this format:

1z0-071 Question 21

Which two statements are true?

Options:

A.

An associative table must be created with a composite key of STUDENT_ID and PROJRCT_ID, which is the foreign key linked to the STUDENTS and PROJECTS entities.

B.

PROJECT_ID must be the primary key in the PROJECTS entity and foreign key in the STUDENTS entity.

C.

The ER must have a 1-to-many relationship between the STUDENTS and PROJECTS entities.

D.

The ER must have a many to-many relationship between the STUDENTS and PROJECTS entities that must be resolved into 1-to-many relationships.

E.

STUDENT ID must be the primary key in the STUDENTS entity and foreign key in the PROJECTS entity.

Buy Now
Questions 22

Which two statements are true about Oracle synonyms?

Options:

A.

A synonym can have a synonym.

B.

All private synonym names must be unique in the database.

C.

Any user can create a PUBLIC synonym.

D.

A synonym can be created on an object in a package.

E.

A synonym has an object number.

Buy Now
Questions 23

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 24

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.

Buy Now
Questions 25

Examine the description of the BRICKS table;

1z0-071 Question 25

Examine the description of the BRICKS_STAGE table;

1z0-071 Question 25

Which two queries execute successfully?

Options:

A.

SELECT shape,color,weight from bricks

MINUS

SELECT * FROM bricks_stage;

B.

SELECT shape,color FROM bricks

MINUS

SELECT WEIGHT,color FROM bricks_stage;

C.

select * from bricks

MINUS

select * from bricks_stage;

D.

SELECT shape,color FROM bricks

MINUS

SELECT color,shape FROM bricks_stage;

E.

SELECT brick_id,shape FROM bricks

MINUS

SELECT WEIGHT,COLOR from bricks_stage;

Buy Now
Questions 26

Which three are key components of an Entity Relationship Model?

Options:

A.

a table

B.

an attribute

C.

a unique identifier

D.

an activity

E.

a relationship

F.

an entity

Buy Now
Questions 27

Examine this SQL statement:

1z0-071 Question 27

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 28

You execute these commands:

SQL> DEFINE hiredate = ’01-APR -2011’;

SQL> SELECT employee_id, first_name, salary FROM employees WHERE hire date > &hiredate AND manager_id >&mgr_id;

For which substitution variables will you be prompted?

Options:

A.

none

B.

&hiredate and &mgr_id

C.

only &hiredate

D.

only &mgr_id

Buy Now
Questions 29

Examine the description of the BOOKS_TRANSACTIONS table:

1z0-071 Question 29

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 30

Examine the description of the CUSTOMERS table:

1z0-071 Question 30

Which three statements will do an implicit conversion?

Options:

A.

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

B.

SELECT * FROM customers WHERE customer id = '0001';

C.

SELECT * FROM customers WHERE customer_ id = 0001;

D.

SELECT FROM customers WHERE insert date = '01-JAN-19';

E.

SELECT. FROM customers WHERE insert_ date = DATE *2019-01-01';

F.

SELECT. FRON customers WE TO DATE (Insert _ date) = DATE ‘2019-01-01’;

Buy Now
Questions 31

Which three are true about the CREATE TABLE command?

Options:

A.

It can include the CREATE...INDEX statement for creating an index to enforce the primary key constraint.

B.

The owner of the table should have space quota available on the tablespace where the table is defined.

C.

It implicitly executes a commit.

D.

It implicitly rolls back any pending transactions.

E.

A user must have the CREATE ANY TABLE privilege to create tables.

F.

The owner of the table must have the UNLIMITED TABLESPACE system privilege.

Buy Now
Questions 32

Which two statements are true about conditional INSERT ALL?

Options:

A.

Each row returned by the subquery can be inserted into only a single target table.

B.

It cannot have an ELSE clause.

C.

The total number of rows inserted is always equal to the number of rows returned by the subquery

D.

A single WHEN condition can be used for multiple INTO clauses.

E.

Each WHEN condition is tested for each row returned by the subquery.

Buy Now
Questions 33

The SALES table has columns PROD_ID and QUANTITY_SOLD of data type NUMBER. Which two queries execute successfully?

Options:

A.

SELECT COUNT(prod_id) FROM sales WHERE quantity_sold>55000 GROUP BY prod_id;

B.

SELECT prod_id FROM sales WHERE quantity_sold> 55000 GROUP BY prod_id HAVING COUNT(*)> 10;

C.

SELECT COUNT(prod_id) FROM sales GROUP BY prod_id WHERE quantity_sold> 55000;

D.

SELECT prod_id FROM sales WHERE quantity_sold> 55000 AND COUNT(*)> 10 GROUP BY COUNT(*)> 10;

E.

SELECT prod_id FROM sales WHERE quantity_sold> 55000 AND COUNT(*)> 10 GROUP BY prod_id HAVING COUNT(*)> 10;

Buy Now
Questions 34

The CUSTOMERS table has a CUST_CREDT_LIMIT column of data type number.

Which two queries execute successfully?

Options:

A.

SELECT TO_CHAR(NVL(cust_credit_limit * .15,'Not Available')) FROM customers;

B.

SELECT NVL2(cust_credit_limit * .15,'Not Available') FROM customers;

C.

SELECT NVL(cust_credit_limit * .15,'Not Available') FROM customers;

D.

SLECT NVL(TO_CHAR(cust_credit_limit * .15),'Not available') from customers;

E.

SELECT NVL2(cust_credit_limit,TO_CHAR(cust_credit_limit * .15),'NOT Available') FROM customers;

Buy Now
Questions 35

You need to allow user ANDREW to:

1. Modify the TITLE and ADDRESS columns of your CUSTOMERS table.

2. GRANT tha permission to other users.

Which statement will do this?

Options:

A.

GRANT UPDATE (title, address) ON customers TO andrew WITH ADMIN OPTION;

B.

GRANT UPDATE ON customers. title, customers.address TO andrew WITH GRANT OPTION;

C.

GRANT UPDATE ON customers.title, customers.address TO andrew WITH ADMIN OPTION;

D.

GRANT UPDATE (title, address) ON customers TO andrew;

E.

GRANT UPDATE ON customers. title, customers.address TO andrew;

F.

GRANT UPDATE (title, address) ON customers TO andrew WITH GRANT OPTION:

Buy Now
Questions 36

Examine this list of requirements for a sequence:

1. Name:EMP_SEQ

2. First value returned:1

3. Duplicates are never permitted.

4. Provide values to be inserted into the EMPLOYEES.EMPLOYEE_ID COLUMN.

5. Reduce the chances of gaps in the values.

Which two statements will satisfy these requirements?

Options:

A.

CREATE SEQUENCE emp_seq START WITH 1 INCRENENT BY 1 NOCACHE;

B.

CREATE SEQUENCE emp_seq START WITH 1 INCREMENT BY 1 CYCLE;

C.

CREATE SEQUENCE emp_seq NOCACHE;

D.

CREATE SEQUENCE emp_seq START WITH 1 CACHE;

E.

CREATE SEQUENCE emp_seq START WITH 1 INCREMENT BY 1 CACHE;

F.

CREATE SEQUENCE emp_seq;

Buy Now
Questions 37

Which two are true about scalar subquery expressions?

Options:

A.

You cannot correlate them with a table in the parent statement

B.

You can use them as a default value for a column.

C.

.You must enclose them in parentheses.

D.

They can return at most one row.

E.

They can return two columns.

Buy Now
Questions 38

Which two queries execute successfully?

Options:

A.

SELECT INTERVAL '1' DAY - SYSDATE FROM DUAL;

B.

SELECT SYSTIMESTAMP + INTERVAL '1' DAY FROM DUAL;

C.

SELECT INTERVAL '1' DAY - INTERVAL '1' MINUTE FROM DUAL;

D.

select INTERVAL '1' DAY +INTERVAL '1' MONTH FROM DUAL;

E.

SELECT SYSDATE “INTERRVAL '1' DAY FROM DUAL;

Buy Now
Questions 39

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 40

Examine the description of the ENPLOYES table:

1z0-071 Question 40

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 41

Which three statements are true about dropping and unused columns in an Oracle database?

Options:

A.

A primary key column referenced by another column as a foreign key can be dropped if using the CASCADE option.

B.

A DROP COLUMN command can be rolled back.

C.

An UNUSED column's space is remained automatically when the block containing that column is next queried.

D.

An UNUSED column's space is remained automatically when the row containing that column is next queried.

E.

Partition key columns cannot be dropped.

F.

A column that is set to NNUSED still counts towards the limit of 1000 columns per table.

Buy Now
Questions 42

Which statements are true regarding primary and foreign key constraints and the effect they can have on table data?

Options:

A.

A table can have only one primary key but multiple foreign keys.

B.

It is possible for child rows that have a foreign key to remain in the child table at the time the parent row is deleted.

C.

Primary key and foreign key constraints can be defined at both the column and table level.

D.

Only the primary key can be defined the column and table level.

E.

It is possible for child rows that have a foreign key to be deleted automatically from the child table at the time the parent row is deleted.

F.

The foreign key columns and parent table primary key columns must have the same names.

G.

A table can have only one primary key and one foreign key.

Buy Now
Questions 43

Which three statements are true about an ORDER BY clause?

Options:

A.

An ORDER BY clause always sorts NULL values last.

B.

An ORDER BY clause can perform a binary sort

C.

An ORDER BY clause can perform a linguistic sort

D.

By default an ORDERBY clause sorts rows in ascending order

E.

An ORDR BY clause will always precede a HAVI NG clause if both are used in the same top-level

Buy Now
Questions 44

Examine this query:

SELECT employee_id, first_name, salary

FROM employees

WHERE hiredate > 61*

Which two methods should yours to prevent prompting for hire date value when this queries executed?

Options:

A.

Execute the SET VERIFY ON command before executing the query.

B.

Execute the SET VERIFY OFF command before executing the query.

C.

Store the query in a script and pass the substitution value to the script when executing it.

D.

Replace 's1' with &1'in the query:

E.

Use the UNDEFINE command before executing the query.

F.

Use the DEFINE command before executing the query

Buy Now
Questions 45

The PRODUCT_INFORMATION table has a UNIT_PRICE column of data type NUMBER(8, 2).

Evaluate this SQL statement:

SELECT TO_CHAR(unit_price,'$9,999') FROM PRODUCT_INFORMATION;

Which two statements are true about the output?

Options:

A.

A row whose UNIT_PRICE column contains the value 1023.99 will be displayed as $1,024.

B.

A row whose UNIT_PRICE column contains the value 1023.99 will be displayed as $1,023.

C.

A row whose UNIT_PRICE column contains the value 10235.99 will be displayed as $1,0236.

D.

A row whose UNIT_PRICE column contains the value 10235.99 will be displayed as $1,023.

E.

A row whose UNIT_PRICE column contains the value 10235.99 will be displayed as #####

Buy Now
Questions 46

Examine the description of the EMPLOYEES table:

1z0-071 Question 46

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 47

Examine the description of the PRODUCT_ STATUS table:

1z0-071 Question 47

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 ||q’(‘ s not available)’ ‘CURRENT AVAILABILITY’ 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)’ FROM

product_ status WHERE status = ‘OUT OF STOCK’;

D.

SELECT PROD_ID||q’(‘s not available)’ “CURRENT AVAILABILITY”

FROM product_ status WHERE status = ‘OUT OF STOCK’;

E.

SELECT prod_id q’s not available” from product_ status WHERE status = ‘OUT OF STOCK’;

F.

SELECT prod_id “CURRENT AVAILABILITY”||q’ (‘s not available)’ from product_ status WHERE status

= ‘OUT OF STOCK’;

Buy Now
Questions 48

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 from both select statements after eliminating duplicate rows.

B.

It will return rows common to both select statements.

C.

It will return rows both select statements including duplicate rows.

D.

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

Buy Now
Questions 49

You execute this command:

TRUNCATE TABIE depts;

Which two are true?

Options:

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.

Buy Now
Questions 50

Examine this partial command:

1z0-071 Question 50

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 51

The ORDERS table has a column ORDER_DATE of date type DATE The default display format for a date is DD-MON-RR

Which two WHERE conditions demonstrate the correct usage of conversion functions?

Options:

A.

WHERE ordet_date> TO_CHAR(ADD_MONTHS(SYSDATE, 6),'MON DD YYYY')

B.

WHERE TO_CHAR(order_date,'MON DD YYYY') ='JAN 20 2019';

C.

WHERE order_date> TO_DATE('JUL 10 2018','MON DD YYYY');

D.

WHERE order_date IN (TO_DATE ('Oct 21 2018','MON DD YYYY'), TO_CHAR('Nov 21 2018','MON DD YYYY'));

E.

WHERE order_date> TO_DATE(ADD_MONTHS(SYSDATE,6),'MON DD YYYY');

Buy Now
Questions 52

A session's NLS_DATE_FORMAT is set to DD Mon YYYY .

Which two queries return the value 1 Jan 2019?

Options:

A.

SELECT to_date(' 2019-01-01 ', 'YYYY -MM-DD' ) FROM DUAL;

B.

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

C.

SELECT TO_CHAR('2019-01-01') FROM DUAL; 2019-01-01

D.

SELECT '2019-01-01' FROM DUAL ; 2019-01-01

E.

SELECT TO_ DATE('2019-01-01') FROM DUAL;

Buy Now
Questions 53

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 54

Which three statements are true about single-row functions?

Options:

A.

The data type returned can be different from the data type of the argument.

B.

They can be nested to any level.

C.

They return a single result row per table.

D.

They can accept only one argument.

E.

The argument can be a column name, variable, literal or an expression.

F.

They can be used only in the WHERE clause of a SELECT statement.

Buy Now
Questions 55

You execute this command:

TRUNCATE TABLE depts;

Which two are true?

Options:

A.

It retains the indexes defined on the table.

B.

It drops any triggers defined on the table.

C.

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

D.

It retains the integrity constraints defined on the table.

E.

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

F.

It always retains the space used by the removed rows

Buy Now
Questions 56

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 57

Examine the description of the PROMTIONS table:

1z0-071 Question 57

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 58

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 clause.

C.

In a character sort, the values are case-sensitive.

D.

Column aliases can be used in the ORDER BY clause.

E.

NULLS are not included in the sort operation.

Buy Now
Questions 59

Examine this partial query:

SELECT ch.channel_type, t.month, co.country_code, SUM(s.amount_sold) SALES

FROM sales s, times t, channels ch, countries co

WHERE s.time_ id = t.time id

AND s.country_ id = co. country id

AND s. channel id = ch.channel id

AND ch.channel type IN ('Direct Sales', 'Internet')

AND t.month IN ('2000-09', '2000-10')

AND co.country code IN ('GB', 'US')

Examine this output:

1z0-071 Question 59

Which GROUP BY clause must be added so the query returns the results shown?

Options:

A.

GROUP BY ch.channel_type, t.month, co.country code;

B.

GROUP BY ch.channel_type,ROLLUP (t month, co. country_ code) ;

C.

GROUP BY CUBE (ch. channel_ type, t .month, co. country code);

D.

GROUP BYch. channel_ type, t.month,ROLIUP (co. country_ code) ;

Buy Now
Questions 60

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 61

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 62

Which three statements are true about views in an Oracle database?

Options:

A.

A SELECT statement cannot contain a where clause when querying a view containing a WHERE clause in its defining query

B.

Rows inserted into a table using a view are retained in the table if the view is dropped

C.

Views can join tables only if they belong to the same schema.

D.

Views have no segment.

E.

Views have no object number.

F.

A view can be created that refers to a non-existent table in its defining query.

Buy Now
Questions 63

Examine the BRICKS table:

1z0-071 Question 63

You write this query:

SELECT

FROM bricks b1 CROSS JOIN bricks b2

WHERE b1. Weight < b2. Weight:

How many rows will the query return?

Options:

A.

1

B.

16

C.

10

D.

6

E.

4

F.

0

Buy Now
Questions 64

Which two are true about the MERGE statement?

Options:

A.

The WHEN NOT MATCHED clause can be used to specify the deletions to be performed.

B.

The WHEN NOT MATCHED clause can be used to specify the inserts to be performed.

C.

The WHEN MATCHED clause can be used to specify the inserts to be performed.

D.

The WHEN NOT MATCHED clause can be used to specify the updates to be performed.

E.

The WHEN MATCHED clause can be used to specify the updates to be performed.

Buy Now
Questions 65

Which two statements are true about * TABLES views?

Options:

A.

You must have SELECT privileges on a table to view it in ALL TABLES.

B.

You must have SELECT privileges on a table to view it in DBA TABLES.

C.

USER TABLES displays all tables owned by the current user.

D.

All TABLES displays all tables owned by the current user.

E.

You must have SELECT privileges on a table to view it in USER TABLES.

F.

All users can query DBA TABLES successfully.

Buy Now
Questions 66

Examine the description of the ORDERS table:

1z0-071 Question 66

Which three statements execute successfully?

Options:

A.

(SELECT * FROM orders

UNION ALL

SELECT* FROM invoices) ORDER BY order _id;

B.

SELECE order _id, order _ date FRON orders

LNTERSECT

SELECT invoice_ id, invoice_ id, order_ date FROM orders

C.

SELECT order_ id, invoice_ data order_ date FROM orders

MINUS

SELECT invoice_ id, invoice_ data FROM invoices ORDER BY invoice_ id;

D.

SELECT * FROM orders ORDER BY order_ id

INTERSEOT

SELECT * FROM invoices ORDER BY invoice_ id;

E.

SELECT order_ id, order_ data FROM orders

UNION ALL

SELECT invoice_ id, invoice_ data FROM invoices ORDER BY order_ id;

F.

SELECT * FROM orders

MINUS

SELECT * FROM INVOICES ORDER BY 1

G.

SELECT * FROM orders ORDER BY order_ id

UNION

SELECT * FROM invoices;

Buy Now
Questions 67

Examine the description of the PRODUCT_INFORMATION table:

1z0-071 Question 67

Options:

A.

SELECT (COUNT(list_price) FROM Product_intormation WHERE list_price=NULL;

B.

SELECT count(nvl( list_price,0)) FROM product_information WHERE list_price is null;

C.

SELECT COUNT(DISTINCT list_price) FROM product_information WHERE list_price is null.

D.

BELECT COUNT(list_price) FROM product_information where list_price is NULL;

Buy Now
Questions 68

Choose two

Examine the description of the PRODUCT DETALS table:

1z0-071 Question 68

Options:

A.

PRODUCT_ID can be assigned the PEIMARY KEY constraint.

B.

EXPIRY_DATE cannot be used in arithmetic expressions.

C.

EXPIRY_DATE contains the SYSDATE by default if no date is assigned to it

D.

PRODUCT_PRICE can be used in an arithmetic expression even if it has no value stored in it

E.

PRODUCT_PRICE contains the value zero by default if no value is assigned to it.

F.

PRODUCT_NAME cannot contain duplicate values.

Buy Now
Questions 69

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 70

BOOK_SEQ is an existing sequence in your schema.

Which two CREATE TABLE commands are valid?

Options:

A.

CREATE TABLE bookings (

bk_id NUMBER(4) NOT NULL PRIMARY KEY,

start_date DATE NOT NULL,

end_date DATE DEFAULT SYSDATE);

B.

CREATE TABLE bookings (

bk_id NUMBER(4) NOT NULL DEFAULT book_seq.CURRVAL,

start_date DATE NOT NULL,

end_date DATE DEFAULT SYSDATE);

C.

CREATE TABLE bookings (

bk_id NUMBER(4) DEFAULT book_seq.CURRVAL,

start_date DATE DEFAULT SYSDATE,

end_date DATE DEFAULT start date);

D.

CREATE TABLE bookings ( bk_id NUMBER(4),

start_date DATE DEFAULT SYSDATE,

end_date DATE DEFAULT (end_date >= start_date));

E.

CREATE TABLE bookings (

bk_id NUMBER(4) DEFAULT book_seq.NEXTVAL PRIMARY KEY,

start_date DATE DEFAULT SYSDATE,

end_date DATE DEFAULT SYSDATE NOT NULL);

Buy Now
Questions 71

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 72

Which two are true about constraints?

Options:

A.

Constraints are enforced only during INSERT operations.

B.

A column with a foreign key constraint can never contain a null value.

C.

All constraints can be defined at the table or column level.

D.

A constraint can be disabled even if the constrained column contains data.

E.

A column with a UNIQUE constraint can contain a NULL value.

Buy Now
Questions 73

Examine the data in the COLORS table:

1z0-071 Question 73

Examine the data in the BRICKS table:

1z0-071 Question 73

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 74

You have been asked to create a table for a banking application.

One of the columns must meet three requirements:

1: Be stored in a format supporting date arithmetic without using conversion functions

2: Store a loan period of up to 10 years

3: Be used for calculating interest for the number of days the loan remains unpaid Which data type should you use?

Options:

A.

TIMESTAMP WITH TIMEZONE

B.

TIMESTAMP

C.

TIMESTAMP WITH LOCAL TIMEZONE

D.

INTERVAL YEAR TO MONTH

E.

INTERVAL DAY TO SECOND

Buy Now
Questions 75

You want to return the current date and time from the user session, with a data type of TIMESTAMP WITH TIME ZONE.

Which function will do this?

Options:

A.

CURRENT DATE

B.

CURRENT_ TIMESTAMP

C.

SYSDATE

D.

LOCALTIMESTAMP

Buy Now
Questions 76

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 77

Examine these SQL statements which execute successfully:

1z0-071 Question 77

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 78

Examine these statements and results:

SQL> SELECT COUNT(*) FROM emp

COUNT(*)

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

14

sQL> CREATE GLOBAL TEMPORARY TABLE t emp As SELECT * FROM emp;

Table created

SQL> INSERT INTo temp SELECT * FROM emp;

14 rows created

SQL> COMMIT:

Commit complete*

SQL> INSERT INTo temp SELECT * EROM emp;

14. rows created

SQL> SELECT COUNT(*) FROM t emp

How many rows are retrieved by the last query?

Options:

A.

28

B.

0

C.

14

D.

42

Buy Now
Questions 79

Examine the description of the EMPLOYEES table:

1z0-071 Question 79

The session time zone is the same as the database server

Which two statements will list only the employees who have been working with the company for more than five years?

Options:

A.

SELECT employee_ name FROM employees WHERE (SYSDATE – hire_ data) / 365>5

B.

SELECT employee_ name FROM employees WHERE (SYSTIMESTAMP – hire_ data) / 365>

C.

SELECT employee_ name FROM employees WHERE (CUARENT_ DATE – hire_ data / 365>5

D.

SELECT employee_ name FROM employees WHERE (SYSNAYW – hire_ data / 12> 3

E.

SELECT employee_ name FROM employees WHERE (SYSNAYW – hire_ data / 12> 3

F.

SELECT employee_ name FROM employees WHERE (CUNACV_ DATE – hire_ data / 12> 3

Buy Now
Questions 80

Examine the description of the BOOKS_TRANSACTIONS table:

1z0-071 Question 80

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 81

Which two are true about the NVL, NVL2, and COALESCE functions?

Options:

A.

The first expression in NVL2 is never returned.

B.

NVL2 can have any number of expressions in the list.

C.

COALESCE stops evaluating the list of expressions when it finds the first null value.

D.

COALESCE stops evaluating the list of expressions when it finds the first non-null value.

E.

NVL must have expressions of the same data type.

F.

NVL can have any number of expressions in the list.

Buy Now
Questions 82

Which three are true about scalar subquery expressions?

Options:

A.

A scalar subquery expression that returns zero rows evaluates to zoro

B.

They cannot be used in the values clause of an insert statement*

C.

They can be nested.

D.

A scalar subquery expression that returns zero rows evaluates to null.

E.

They cannot be used in group by clauses.

F.

They can be used as default values for columns in a create table statement.

Buy Now
Questions 83

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 84

Which three actions can you perform by using the ORACLE DATAPUMP access driver?

Options:

A.

Create a directory object for an external table.

B.

Read data from an external table and load it into a table in the database.

C.

Query data from an external table.

D.

Create a directory object for a flat file.

E.

Execute DML statements on an external table.

F.

Read data from a table in the database and insert it into an external table.

Buy Now
Questions 85

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 86

Which two statements are true about the data dictionary?

Options:

A.

Views with the prefix dba_ display only metadata for objects in the SYS schema.

B.

Views with the prefix all_ display metadata for objects to which the current user has access.

C.

The data dictionary is accessible when the database is closed.

D.

Views with the prefix all_, dba_ and useb_ are not all available for every type of metadata.

E.

The data dictionary does not store metadata in tables.

Buy Now
Questions 87

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
Questions 88

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%’

Buy Now
Questions 89

1z0-071 Question 89

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 90

Which two statements are true about external tables?

Options:

A.

Indexes can be created on them.

B.

You can populate them from existing data in the database by using the CREATE TABLE AS SELECT command.

C.

DML statements cannot be used on them.

D.

Their data can be retrieved by using only SQL or PL/SQL.

E.

Their metadata and actual data are both stored outside the database.

Buy Now
Questions 91

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 92

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 93

Examine this query:

SELECT TRUNC (ROUND(156.00,-2),-1) FROM DUAL; What is the result?

Options:

A.

16

B.

160

C.

150

D.

200

E.

100

Buy Now
Questions 94

Examine the description of the CUSTOMERS table:

1z0-071 Question 94

You need to display last names and credit limits of all customers whose last name starts with A or B In lower or upper case, and whose credit limit is below 1000.

Examine this partial query:

SELECT cust_last_nare, cust_credit_limit FROM customers

Which two WHERE conditions give the required result?

Options:

A.

WHERE UPPER(cust_last_name) IN ('A%', 'B%') AND cust_credit_limit < 1000:

B.

WHERE (INITCAP(cust_last_name) LIKE ‘A%' OR ITITCAP(cust_last_name) LIKE ‘B%') AND cust_credit_limit < 1000

C.

WHERE UPPER(cust_last_name) BETWEEN UPPER('A%' AND 'B%’) AND ROUND(cust_credit_limit) < 1000;

D.

WHERE (UPPER(cust_last_name) LIKE 'A%’ OR UPPER(cust_last_name) LIKE ‘B%’) AND ROUND(cust_credit_limit) < 1000;

E.

WHERE (UPPER(cust_last_name) like INITCAP ('A') OR UPPER(cust_last_name) like INITCAP('B')) AND ROUND(cust_credit_limit) < ROUND(1000) ;

Buy Now
Questions 95

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 96

Examine the description of the PROMOTIONS TABLE:

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

Which two queries can be used?

Options:

A.

SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;

B.

SELECT promo_cost, promo_category FROM promotions ORDER BY 1

C.

SELECT promo_category, DISTINCT promo_cost FROM promotiong ORDER BY 2:

D.

select DISTINCT promo_categoryIl ‘has’||promol_cost as COSTS FROM promotions ORDER BY 1:

E.

SELECT DISTINCT promo_cost ||’in’IIDISTINCT promo_category promotions ORDER BY1:

Buy Now
Questions 97

Which two statements will return the names of the three employees with the lowest salaries?

Options:

A.

SELECT last_ name, salary

FROM employees

FETCH FIRST 3 ROWS ONLY

ORDER BY salary;

B.

SELECT last name, salary

FROM employees

ORDER BY salary

FETCE FIRST 3 RONS ONLY;

C.

SELECT last_ name, salary

FBOM employees

WEERE

ORDER BY SELECT

ROINUM <= 3

salary FROM

employees);

D.

SELECT last_ name, salary

FROM

(SELECT” FROM employees ORDER BY salary)

WHERE ROWNUM <=3

E.

SELECT last_ name, salary

FROM employees

WHERE ROWNUM <=3

ORDER BY salary

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

PDF + Testing Engine

$56  $159.99

Testing Engine

$42  $119.99
buy now 1z0-071 testing engine

PDF (Q&A)

$35  $99.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 May 2024