Free 1z0-071 Questions for Oracle Database SQL 1z0-071 Exam as PDF & Practice Test Engine
You want to write a query that prompts for two column names and the WHERE condition each time It is executed in a session but only prompts for the table name the first time it is executed. The variables used in your query are never undefined in your session . Which query can be used?
Correct Answer: C
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Examine this SQL statement:
SELECT cust_id, cust_last_name "Last Name
FROM customers
WHERE countryid=10
UNION
SELECT custid CUSTNO, cust_last_name
FROM customers
WHERE countryid=30
Identify three ORDER BY clauses, any one of which can complete the query successfully.
SELECT cust_id, cust_last_name "Last Name
FROM customers
WHERE countryid=10
UNION
SELECT custid CUSTNO, cust_last_name
FROM customers
WHERE countryid=30
Identify three ORDER BY clauses, any one of which can complete the query successfully.
Correct Answer: A,B,E
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Examine the description of the EMPLOYEES table:

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

Which two queries return rows for employees whose manager works in a different department?
Correct Answer: A,C
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Examine the data in the INVOICES table:

Examine the data in the CURRENCIES table:
CURRENCY_CODE
-------------
JPY
GPB
CAD
EUR
USD
Which query returns the currencies in CURRENCIES that are not present in INVOICES?

Examine the data in the CURRENCIES table:
CURRENCY_CODE
-------------
JPY
GPB
CAD
EUR
USD
Which query returns the currencies in CURRENCIES that are not present in INVOICES?
Correct Answer: A
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Choose the best answer.
Examine the description of the EMPLOYEES table:

Which query is valid?
Examine the description of the EMPLOYEES table:

Which query is valid?
Correct Answer: D
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Examine the data in the PRODUCTS table:

Examine these queries:
1. SELECT prod name, prod list
FROM products
WHERE prod 1ist NOT IN(10,20) AND category _id=1;
2. SELECT prod name, | prod _ list
FROM products
WHERE prod list < > ANY (10,20) AND category _id= 1;
SELECT prod name, prod _ list
FROM products
WHERE prod_ list <> ALL (10, 20) AND category _ id= 1;
Which queries generate the same output?

Examine these queries:
1. SELECT prod name, prod list
FROM products
WHERE prod 1ist NOT IN(10,20) AND category _id=1;
2. SELECT prod name, | prod _ list
FROM products
WHERE prod list < > ANY (10,20) AND category _id= 1;
SELECT prod name, prod _ list
FROM products
WHERE prod_ list <> ALL (10, 20) AND category _ id= 1;
Which queries generate the same output?
Correct Answer: B
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Which two are true about global temporary tables?
Correct Answer: A,C
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
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?
DATE
02-JAN-2020
Which statement returns this?
Correct Answer: D
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
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?
You only want to display details of rows where START_DATEis within the last 25 months.which WHERE clause can be used?
Correct Answer: B
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Examine the description of the PRODUCT_ STATUS table:

The STATUS column contains the values IN STOCK or OUT OF STocK for each row.
Which two queries will execute successfully?

The STATUS column contains the values IN STOCK or OUT OF STocK for each row.
Which two queries will execute successfully?
Correct Answer: A
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Examine this query:
SELECT employee_id,first_name,salary
FROM employees
WHERE hire_date>'&1';
Which two methods should you use to prevent prompting for a hire date value when this query is executed?
SELECT employee_id,first_name,salary
FROM employees
WHERE hire_date>'&1';
Which two methods should you use to prevent prompting for a hire date value when this query is executed?
Correct Answer: C,D
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Which three statements are true about an ORDER BY clause?
Correct Answer: B,C,E
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
which three statements are true regarding single row subqueries?
Correct Answer: A,B,D
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
BOOK_SEQ is an existing sequence in your schema.
Which two CREATE TABLE commands are valid?
Which two CREATE TABLE commands are valid?
Correct Answer: D,E
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Examine the description of the countries table:

Examine the description of the departments table:

Examine the description of the locations table:

Which two queries will return a list of countries with no departments?

Examine the description of the departments table:

Examine the description of the locations table:

Which two queries will return a list of countries with no departments?
Correct Answer: B,D
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
0
0
0
10
