Oracle.1z0-071.v2020-01-19.q80: Leave A Reply
Oracle.1z0-071.v2020-01-19.q80: Leave A Reply
q80
NEW QUESTION: 1
In which three situations does a new transaction always start?
A. when issuing a TRUNCATE statement after a SELECT statement was issued in the same
session
B. when issuing a DML statement after a DML statement failed in the same session
C. when issuing a CREATE TABLE statement after a SELECT statement was issued in the same
session
D. when issuing a SELECT FOR UPDATE statement after a CREATE TABLE AS SELECT
statement was issued in the same session
E. when issuing a CREATE INDEX statement after a CREATE TABLE statement completed
successfully in the same session
F. when issuing the first Data Manipulation Language (DML) statement after a COMMIT or
ROLLBACK statement was issued in the same session
Answer: B,D,F (LEAVE A REPLY)
NEW QUESTION: 2
View the exhibit and examine the structure and data in the INVOICE table.
Which two SQL statements would execute successfully? (Choose two.)
A. SELECT AVG( inv_date - SYSDATE), AVG(inv_amt)FROM invoice;
B. SELECT MAX(AVG(SYSDATE -inv_date))FROM invoice;
C. SELECT MAX(inv_date),MIN(cust_id)FROM invoice;
D. SELECT AVG(inv_date)FROM invoice;
Answer: A,C (LEAVE A REPLY)
NEW QUESTION: 3
In the PROMOTIONS table, the PROMO_BEGIN_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 a
query?
A. PROMO_BEGIN_DATE - SYSDATE will return a number.
B. PROMO_BEGIN_DATE - SYSDATE will return an error.
C. PROMO_BEGIN_DATE - 5 will return a date.
D. TO_NUMBER(PROMO_BEGIN_DATE) - 5 will return a number.
E. TO_DATE(PROMO_BEGIN_DATE * 5) will return a date.
Answer: (SHOW ANSWER)
NEW QUESTION: 4
Which two statements are true regarding subqueries? (Choose two.)
A. A subquery can be used only in SQL query statements.
B. A subquery can appear on either side of a comparison operator.
C. Only two subqueries can be placed at one level.
D. There is no limit on the number of subquery levels in the WHERE clause of a SELECT
statement.
E. A subquery can retrieve zero or more rows.
Answer: B,E (LEAVE A REPLY)
NEW QUESTION: 5
The INVOICE table has a QTY_SOLD column of data type NUMBER and an INVOICE_DATE
column of data type DATE.
NLS_DATE_FORMAT is set to DD-MON-RR.
Which two are true about data type conversions involving these columns in query expressions?
(Choose two.)
A. qty_sold = '0554982' : requires explicit conversion
B. invoice_date > '01-02-2019' : uses implicit conversion
C. invoice_date = '15-march-2019' : uses implicit conversion
D. qty_sold BETWEEN '101' AND '110' : uses implicit conversion
E. CONCAT(qty_sold, invoice_date) : requires explicit conversion
Answer: C,D (LEAVE A REPLY)
NEW QUESTION: 6
Using the CUSTOMERS table, you need to generate a report that shows 50% of each credit
amount in each income level. The report should NOT show any repeated credit amounts in each
income level.
Which query would give the required result?
A. SELECT cust_income_level, DISTINCT cust_credit_limit * 0.50AS "50% Credit Limit"FROM
customers;
B. SELECT DISTINCT cust_income_level || ' ' || cust_credit_limit * 0.50AS "50% Credit
Limit"FROM customers;
C. SELECT cust_income_level || ' ' || cust_credit_limit * 0.50 AS "50% Credit Limit" FROM
customers;
D. SELECT DISTINCT cust_income_level, DISTINCT cust_credit_limit * 0.50AS "50% Credit
Limit"FROM customers;
Answer: B (LEAVE A REPLY)
NEW QUESTION: 7
Which statement is true about Enterprise Manager (EM) express in Oracle Database 12c?
A. You can perform basic administrative tasks for pluggable databases by using the EM express
interface.
B. By default, EM express is available for a database after database creation.
C. You can use EM express to manage multiple databases running on the same server.
D. You cannot start up or shut down a database Instance by using EM express.
E. You can create and configure pluggable databases by using EM express.
Answer: B (LEAVE A REPLY)
NEW QUESTION: 8
Evaluate the following SQL statement:
SQL> select cust_id, cust_last_name "Last name"
FROM customers
WHERE country_id = 10
UNION
SELECT cust_id CUST_NO, cust_last_name
FROM customers
WHERE country_id = 30
Identify three ORDER BY clauses either one of which can complete the query. (Choose three.)
A. ORDER BY "Last name"
B. ORDER BY 2, cust_id
C. ORDER BY CUST_NO
D. ORDER BY 2,1
E. ORDER BY "CUST_NO"
Answer: (SHOW ANSWER)
Explanation
Using the ORDER BY Clause in Set Operations
-The ORDER BY clause can appear only once at the end of the compound query.
-Component queries cannot have individual ORDER BY clauses.
-The ORDER BY clause recognizes only the columns of the first SELECT query.
-By default, the first column of the first SELECT query is used to sort the output in an ascending
order.
NEW QUESTION: 9
Examine this SQL statement:
NEW QUESTION: 10
View the Exhibit and examine PRODUCTS and ORDER_ITEMS tables.
You executed the following query to display PRODUCT_NAME and the number of times the
product has been ordered:
SELECT p.product_name, i.item_cnt
FROM (SELECT product_id, COUNT (*) item_cnt
FROM order_items
GROUP BY product_id) i RIGHT OUTER JOIN products p
ON i.product_id = p.product_id;
What would happen when the above statement is executed?
A. The statement would not execute because the GROUP BY clause cannot be used in the inline.
B. The statement would not execute because the ITEM_CNT alias cannot be displayed in the
outer query.
C. The statement would not execute because inline views and outer joins cannot be used
together.
D. The statement would execute successfully to produce the required output.
Answer: D (LEAVE A REPLY)
NEW QUESTION: 11
You need to produce a report where each customer's credit limit has been incremented by $1000.
In the output, the customer's last name should have the heading Name and the incremented
credit limit should be labeled New Credit Limit. The column headings should have only the first
letter of each word in uppercase.
Which statement would accomplish this requirement?
A. SELECT INITCAP (cust_last_name) "Name", cust_credit_limit + 1000INITCAP ("NEW
CREDIT LIMIT")FROM customers;
B. SELECT cust_last_name AS "Name", cust_credit_limit + 1000AS "New Credit Limit"FROM
customers;
C. SELECT cust_last_name AS Name, cust_credit_limit + 1000"New Credit Limit"FROM
customers;
D. SELECT cust_last_name AS Name, cust_credit_limit + 1000AS New Credit LimitFROM
customers;
Answer: B (LEAVE A REPLY)
NEW QUESTION: 12
Which statement is true about an inner join specified in the WHERE clause of a query?
A. It must have primary-key and foreign-key constraints defined on the columns used in the join
condition.
B. It is applicable for equijoin and nonequijoin conditions.
C. It requires the column names to be the same in all tables used for the join conditions.
D. It is applicable for only equijoin conditions.
Answer: B (LEAVE A REPLY)
NEW QUESTION: 13
Examine these statements executed in a single Oracle session:
NEW QUESTION: 14
Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS
tables:
You want to generate a list of all department IDs that do not exist in the COURSE_DETAILS
table.
You execute the SQL statement:
NEW QUESTION: 15
Which two statements are true about conditional INSERT ALL?
A. A single WHEN condition can be used for multiple INTO clauses.
B. It cannot have an ELSE clause.
C. Each row returned by the subquery can be inserted into only a single target table.
D. The total number of rows inserted is always equal to the number of rows returned by the
subquery.
E. Each WHEN condition is tested for each row returned by the subquery.
Answer: A,B (LEAVE A REPLY)
NEW QUESTION: 16
Evaluate the following CREATE TABLE command:
Which statement is true regarding the above SQL statement?
A. It would execute successfully and two indexes ORD_ITM_IDX and ORD_ITM_ID_PK would be
created.
B. It would give an error because the USING INDEX clause is not permitted in the CREATE
TABLE command.
C. It would execute successfully and only ORD_ITM_IDX index would be created.
D. It would give an error because the USING INDEX clause cannot be used on a composite
primary.
Answer: C (LEAVE A REPLY)
Valid 1z0-071 Dumps shared by Fast2test.com for Helping Passing 1z0-071 Exam!
Fast2test.com now offer the newest 1z0-071 exam dumps, the Fast2test.com 1z0-071 exam
questions have been updated and answers have been corrected get the newest
Fast2test.com 1z0-071 dumps with Test Engine here: https://www.fast2test.com/1z0-071-
premium-file.html (305 Q&As Dumps, 30%OFF Special Discount: freecram)
NEW QUESTION: 17
Evaluate the following statement.
Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT
statement?
A. They are evaluated by all the three WHEN clauses regardless of the results of the evaluation
of any other WHEN clause.
B. They are evaluated by the first WHEN clause. If the condition is true, then the row would be
evaluated by the subsequent WHEN clauses.
C. They are evaluated by the first WHEN clause. If the condition is false, then the row would be
evaluated by the subsequent WHEN clauses.
D. The insert statement would give an error because the ELSE clause is not present for support
in case none of WHEN clauses are true.
Answer: A (LEAVE A REPLY)
Explanation
http://psoug.org/definition/WHEN.htm
NEW QUESTION: 18
Which three statements are true about inner and outer joins? (Choose three.)
A. A left or right outer join returns only unmatched rows
B. Outer joins can be used when there are multiple join conditions on two tables
C. A full outer join returns matched and unmatched rows
D. A full outer join must use Oracle syntax
E. An inner join returns matched rows
F. Outer joins can only be used between two per query
Answer: (SHOW ANSWER)
NEW QUESTION: 19
View the exhibit and examine the structure of the CUSTOMERS table.
Which two tasks would require subqueries or joins to be executed in a single statement? (Choose
two.)
A. finding the number of customers, in each city, whose marital status is 'married'.
B. listing of those customers, whose credit limit is the same as the credit limit of customers
residing in the city 'Tokyo'.
C. finding the number of customers, in each city, whose credit limit is more than the average
credit limit of all the customers
D. listing of customers who do not have a credit limit and were born before 1980
E. finding the average credit limit of male customers residing in 'Tokyo' or 'Sydney'
Answer: B,C (LEAVE A REPLY)
NEW QUESTION: 20
Which three statements are true about performing Data Manipulation Language (DML) operations
on a view with no INSTEAD OF triggers defined? (Choose three.)
A. The WITH CHECK clause has no effect when deleting rows from the underlying table through
the view.
B. Insert statements can always be done on a table through a view.
C. Delete statements can always be done on a table through a view.
D. 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.
E. Views cannot be used to add or modify rows in an underlying table if the defining query of the
view contains the DISTINCT keyword.
F. 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.
Answer: B,C,D (LEAVE A REPLY)
NEW QUESTION: 21
View the exhibit and examine the structure of the STORES table.
You must display the NAME of stores along with the ADDRESS, START_DATE,
PROPERTY_PRICE, and the projected property price, which is 115% of property price.
The stores displayed must have START_DATE in the range of 36 months starting from 01-
Jan-2000 and above.
Which SQL statement would get the desired output?
A. SELECT name, concat(address||', '||city||', ',country) AS full_address,
start_date,property_price, property_price*115/100FROM storesWHERE
TO_NUMBER(start_date-TO_DATE('01-JAN-2000','DD-MON-RRRR')) <=36;
B. SELECT name, concat(address||', '||city||', ', country) AS full_address,
start_date,property_price, property_price*115/100FROM storesWHERE
MONTHS_BETWEEN(start_date,TO_DATE('01-JAN-2000','DD-MON-RRRR')) <=36;
C. SELECT name, address||', '||city||', '||country AS full_address, start_date,property_price,
property_price*115/100FROM storesWHERE MONTHS_BETWEEN(start_date,TO_DATE('01-
JAN-2000','DD-MON-RRRR')) <=36;
D. SELECT name, concat(address||', '||city||', ',country) AS full_address, start_date,
property_price, property_price*115/100FROM storesWHERE
MONTHS_BETWEEN(start_date,'01-JAN-2000') <=36;
Answer: B (LEAVE A REPLY)
NEW QUESTION: 22
View the Exhibit and examine the structure of CUSTOMERS table.
NEW QUESTION: 24
Which two partitioned table maintenance operations support asynchronous Global Index
Maintenance in Oracle database 12c? (Choose two.)
A. ALTER TABLE DROP PARTITION
B. ALTER TABLE SPLIT PARTITION
C. ALTER TABLE MERGE PARTITION
D. ALTER TABLE MOVE PARTITION
E. ALTER TABLE ADD PARTITION
F. ALTER TABLE TRUNCATE PARTITION
Answer: A,F (LEAVE A REPLY)
NEW QUESTION: 25
View the Exhibit and examine the details of the ORDER_ITEMS table.
Evaluate the following SQL statements:
Statement 1:
SELECT MAX(unit_price*quantity) "Maximum Order"
FROM order_items;
Statement 2:
SELECT MAX(unit_price*quantity) "Maximum Order"
FROM order_items
GROUP BY order_id;
Which statements are true regarding the output of these SQL statements? (Choose all that
apply.)
A. Statement 1 would not return give the same output.
B. Statement 1 would return only one row of output.
C. Both the statements would give the same output.
D. Statement 2 would return multiple rows of output.
E. Both statements would ignore NULL values for the UNIT_PRICE and QUANTITY columns.
Answer: (SHOW ANSWER)
NEW QUESTION: 26
See the Exhibit and examine the structure of the PROMOTIONS table:
NEW QUESTION: 27
The sales table has columns prod_id and quantity_sold of data type number. Which two queries
execute successfully?
A. SELECT COUNT(prod_id) FROM sales GROUP BY prod_id WHERE quantity_sold > 55000;
B. SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*) > 10 GROUP
BY prod_id HAVING COUNT(*) > 10;
C. SELECT prod Id FROH sales NHERE quantity sold > 55000 3RODI BY prod_id HAVING
COUNT(*)
> 10;
D. SELECT COUNT(prod_id) FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id;
E. SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND
COUNT(*) > 10 GROUP BY COUNT(*) > 10;
Answer: C,D (LEAVE A REPLY)
NEW QUESTION: 28
Examine this query:
SELECT 2 FROM dual d1 CROSS JOIN dual d2 CROSS JOIN dual d3;
What is returned upon execution?
A. an error
B. 0 rows
C. 6 rows
D. 8 rows
E. 1 row
F. 3 rows
Answer: E (LEAVE A REPLY)
NEW QUESTION: 29
Which three statements are true about Data Manipulation Language (DML)?
A. INSERT statements can insert NULLS explicitly into a column.
B. INSERT INTO...SELECT...FROM statements automatically commit.
C. UPDATE statements can have different subqueries to specify the values for each updated
column.
D. DML statements require a primary key be defined on a table.
E. DELETE statements can remove multiple rows based on multiple conditions.
Answer: B,C,E (LEAVE A REPLY)
NEW QUESTION: 30
Examine the structure of the MEMBERS table:
Valid 1z0-071 Dumps shared by Fast2test.com for Helping Passing 1z0-071 Exam!
Fast2test.com now offer the newest 1z0-071 exam dumps, the Fast2test.com 1z0-071 exam
questions have been updated and answers have been corrected get the newest
Fast2test.com 1z0-071 dumps with Test Engine here: https://www.fast2test.com/1z0-071-
premium-file.html (305 Q&As Dumps, 30%OFF Special Discount: freecram)
NEW QUESTION: 32
Examine the structure of the EMPLOYEES table.
You must display the maximum and minimum salaries of employees hired 1 year ago.
Which two statements would provide the correct output? (Choose two.)
A. SELECT minsal, maxsalFROM (SELECT MIN(salary) minsal, MAX(salary) maxsalFROM
employeesWHERE hire_date < SYSDATE-365GROUP BY MIN(salary), MAX(salary));
B. SELECT minsal, maxsalFROM (SELECT MIN(salary) minsal, MAX(salary) maxsalFROM
employeesWHERE hire_date < SYSDATE-365)GROUP BY maxsal, minsal;
C. SELECT MIN(Salary) minsal, MAX(salary) maxsalFROM employeesWHERE hire_date <
SYSDATE-365GROUP BY MIN(salary), MAX(salary);
D. SELECT MIN(Salary), MAX(salary)FROM (SELECT salary FROMemployeesWHERE
hire_date < SYSDATE-365);
Answer: B,D (LEAVE A REPLY)
NEW QUESTION: 33
Which three statements are true about time zones, date data types, and timestamp data types in
an Oracle database?
A. The DBTIMEZONE function can return an offset from Universal Coordinated Time (UTC).
B. The SESSIONTIMEZONE function can return an offset from Universal Coordinated Time
(UTC).
C. The CURRENT_TIMESTAMP function returns data without time zone information.
D. A TIMESTAMP data type column contains information about year, month, and day.
E. A TIMESTAMP WITH LOCAL TIMEZONE data type column is stored in the database using the
time zone of the session that inserted the row.
Answer: A,B,C (LEAVE A REPLY)
NEW QUESTION: 34
Which three statements are true regarding indexes? (Choose three.)
A. When a table is dropped and is moved to the RECYCLE BIN, all indexes built on that table are
permanently dropped
B. A UNIQUE index can be altered to be non-unique
C. An update to a table can result in no updates to any of the table's indexes
D. An update to a table can result in updates to any or all of the table's indexes
E. A SELECT statement can access one or more indices without accessing any tables
F. A table belonging to one user can have an index that belongs to a different user
Answer: A,C,E (LEAVE A REPLY)
NEW QUESTION: 35
Which four statements are true regarding primary and foreign key constraints and the effect they
can have on table data? (Choose four.)
A. A table can have only one primary key and one foreign key
B. 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
C. Only the primary key can be defined at the column and table level
D. The foreign key columns and parent table primary key columns must have the same names
E. 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
F. A table can have only one primary key but multiple foreign keys
G. Primary key and foreign key constraints can be defined at both the column and table level
Answer: (SHOW ANSWER)
NEW QUESTION: 36
View the Exhibit and examine the details of the PRODUCT_INFORMATION table.
Exhibit
You must display PRODUCT_NAME from the table where the CATEGORY_ID column has
values 12 or 13, and the SUPPLIER_ID column has the value 102088.
You executed this SQL statement:
NEW QUESTION: 37
Which three actions can you perform on an existing table containing data? (Choose three.)
A. Change the default value of a column
B. Change a DATE column containing data to a NUMBER data type
C. Add a new column as the table's first column
D. Define a default value that is automatically inserted into a column containing nulls
E. Increase the width of a numeric column
F. Add a new NOT NULL column with a DEFAULT value
Answer: (SHOW ANSWER)
NEW QUESTION: 38
Which two statement are true regarding table joins available in the Oracle Database server?
(Choose two.)
A. You can explicitly provide the join condition with a NATURAL JOIN.
B. You can use the ON clause to specify multiple conditions while joining tables.
C. You can use the USING clause to join tables on more than one column.
D. You can use the JOIN clause to join only two tables.
Answer: (SHOW ANSWER)
NEW QUESTION: 39
Which three statements are true regarding single row subqueries?
A. They can be used in the having clause.
B. They must be placed on the left side of the comparison operator or condition.
C. They can be used in the where clause.
D. A SQL statement may have multiple single row subquery blocks.
E. They must return a row to prevent errors in the SQL statement.
F. They must be placed on the right side of the comparison operator or condition.
Answer: A,C,D (LEAVE A REPLY)
NEW QUESTION: 40
Evaluate the following two queries:
NEW QUESTION: 42
Examine the description of the CUSTOMERS table:
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?
A. Option A
B. Option C
C. Option E
D. Option B
E. Option D
Answer: A (LEAVE A REPLY)
NEW QUESTION: 43
You want to display 5 percent of the rows from the SALES table for products with the lowest
AMOUNT_SOLD and also want to include the rows that have the same AMOUNT_SOLD even if
this causes the output to exceed 5 percent of the rows.
Which query will provide the required result?
A. SELECT prod_id, cust_id, amount_soldFROM salesORDER BY amount_soldFETCH FIRST 5
PERCENT ROWS WITH TIES ONLY;
B. SELECT prod_id, cust_id, amount_soldFROM salesORDER BY amount_soldFETCH FIRST 5
PERCENT ROWS WITH TIES;
C. SELECT prod_id, cust_id, amount_soldFROM salesORDER BY amount_soldFETCH FIRST 5
PERCENT ROWS ONLY WITH TIES;
D. SELECT prod_id, cust_id, amount_soldFROM salesORDER BY amount_soldFETCH FIRST 5
PERCENT ROWS ONLY;
Answer: B (LEAVE A REPLY)
NEW QUESTION: 44
Examine the structure of the BOOKS_TRANSACTIONS table:
You want to display the member IDs, due date, and late fee as $2 for all transactions.
Which SQL statement must you execute?
A. SELECT member_id AS "MEMBER ID", due_date AS "DUE DATE", '$2' AS "LATE FEE"
FROM BOOKS_TRANSACTIONS;
B. SELECT member_id 'MEMBER ID', due_date 'DUE DATE', '$2 AS LATE FEE' FROM
BOOKS_TRANSACTIONS;
C. SELECT member_id AS "MEMBER ID", due_date AS "DUE DATE", $2 AS "LATE FEE"
FROM BOOKS_TRANSACTIONS;
D. SELECT member_id AS MEMBER_ID, due_date AS DUE_DATE, $2 AS LATE_FEE FROM
BOOKS_TRANSACTIONS;
Answer: (SHOW ANSWER)
NEW QUESTION: 45
Which two statements are true regarding constraints? (Choose two.)
A. A table can have only one primary key and one foreign key.
B. The foreign key and parent table primary key must have the same name.
C. Both primary key and foreign key constraints can be defined at both column and table levels.
D. Only the primary key can be defined at the column and table levels.
E. A table can have only one primary key but multiple foreign keys.
Answer: C,E (LEAVE A REPLY)
NEW QUESTION: 46
Table EMPLOYEES contains columns including EMPLOYEE_ID, JOB_ID and SALARY.
Only the EMPLOYEE_ID column is indexed.
Rows exist for employees 100 and 200.
Examine this statement:
Which two statements are true? (Choose two.)
A. Employees 100 will have JOB_ID set to the same value as the JOB_ID of employee 200
B. Employee 200 will have SALARY set to the same value as the SALARY of employee 100
C. Employees 100 and 200 will have the same SALARY as before the update command
D. Employee 100 will have SALARY set to the same value as the SALARY of employee 200
E. Employee 200 will have JOB_ID set to the same value as the JOB_ID of employee 100
F. Employees 100 and 200 will have the same JOB_ID as before the update command
Answer: A,D (LEAVE A REPLY)
Valid 1z0-071 Dumps shared by Fast2test.com for Helping Passing 1z0-071 Exam!
Fast2test.com now offer the newest 1z0-071 exam dumps, the Fast2test.com 1z0-071 exam
questions have been updated and answers have been corrected get the newest
Fast2test.com 1z0-071 dumps with Test Engine here: https://www.fast2test.com/1z0-071-
premium-file.html (305 Q&As Dumps, 30%OFF Special Discount: freecram)
NEW QUESTION: 47
You need to list the employees in DEPARTMENT_ID 20 days in a single row, ordered by
HIRE_DATE.
Examine the sample output:
The STATUS column contains the values 'IN STOCK' or 'OUT OF STOCK' for each row.
Which two queries will execute successfully?
A. Option E
B. Option C
C. Option F
D. Option B
E. Option A
F. Option D
Answer: (SHOW ANSWER)
NEW QUESTION: 49
You must create a table EMPLOYEES in which the values in the columns EMPLOYEES_ID and
LOGIN_ID must be unique and not null.
Which two SQL statements would create the required table? (Choose two.)
A. CREATE TABLE employees(employee_id NUMBER,login_id NUMBER,employee_name
VARCHAR2(100),hire_date DATE,CONSTRAINT emp_id_uk UNIQUE (employee_id,
login_id);CONSTRAINT emp_id_nn NOT NULL (employee_id, login_id));
B. CREATE TABLE employees(employee_id NUMBER CONSTRAINT emp_id_nn NOT
NULL,login_id NUMBER CONSTRAINT login_id_nn NOT NULL,employee_name
VARCHAR2(100),hire_date DATE,CONSTRAINT emp_num_id_uk UNIQUE (employee_id,
login_id));
C. CREATE TABLE employees(employee_id NUMBER,login_id NUMBER,employee_name
VARCHAR2(25),hire_date DATE,CONSTRAINT emp_id_pk PRIMARY KEY (employee_id,
login_id));
D. CREATE TABLE employees(employee_id NUMBER CONSTRAINT emp_id_pk PRIMARY
KEY,login_id NUMBER UNIQUE,employee_name VARCHAR2(25),hire_date DATE);
E. CREATE TABLE employees(employee_id NUMBER,login_id NUMBER,employee_name
VARCHAR2(100),hire_date DATE,CONSTRAINT emp_id_uk UNIQUE (employee_id, login_id));
Answer: (SHOW ANSWER)
NEW QUESTION: 50
View the Exhibit and examine the structure of the ORDER_ITEMS table.
You must select the ORDER_ID of the order that has the highest total value among all the orders
in the ORDER_ITEMS table.
Which query would produce the desired result?
A. SELECT order_idFROM order_itemsGROUP BY order_idHAVING SUM(unit_price*quantity) =
(SELECT MAX(SUM(unit_price*quantity))FROM order_items GROUP BY order_id);
B. SELECT order_idFROM order_itemsWHERE(unit_price*quantity) = (SELECT
MAX(unit_price*quantity)FROM order_items)GROUP BY order_id;
C. SELECT order_idFROM order_itemsWHERE (unit_price*quantity) = (SELECT
MAX(unit_price*quantity)FROM order_itemsGROUP BY order_id)
D. SELECT order_idFROM order_itemsWHERE(unit_price*quantity) =
MAX(unit_price*quantity)GROUP BY order_id;
Answer: A (LEAVE A REPLY)
NEW QUESTION: 51
View the Exhibit and examine the structure of the PRODUCTS table.
You must display the category with the maximum number of items.
You issue this query:
NEW QUESTION: 52
You execute this query:
NEW QUESTION: 53
Examine the create table statements for the stores and sales tables.
SQL> CREATE TABLE stores(store_id NUMBER(4) CONSTRAINT store_id_pk PRIMARY KEY,
store_name VARCHAR2(12), store_address VARCHAR2(20), start_date DATE); SQL> CREATE
TABLE sales(sales_id NUMBER(4) CONSTRAINT sales_id_pk PRIMARY KEY, item_id
NUMBER(4), quantity NUMBER(10), sales_date DATE, store_id NUMBER(4), CONSTRAINT
store_id_fk FOREIGN KEY(store_id) REFERENCES stores(store_id)); You executed the
following statement:
SQL> DELETE from stores
WHERE store_id=900;
The statement fails due to the integrity constraint error:
ORA-02292: integrity constraint (HR.STORE_ID_FK) violated
Which three options ensure that the statement will execute successfully? (Choose three.)
A. DELETE the rows with STORE_ID = 900 from the SALES table and then delete rows from
STORES table.
B. Disable the FOREIGN KEY in SALES table and then delete the rows.
C. Disable the primary key in the STORES table.
D. Use CASCADE keyword with DELETE statement.
E. Create the foreign key in the SALES table on SALES_ID column with on DELETE CASCADE
option.
Answer: (SHOW ANSWER)
NEW QUESTION: 54
Which three statements are true about indexes and their administration in an Oracle database?
A. If a query filters on an indexed column then it will always be used during execution of the
query.
B. An index can be created as part of a CREATE TABLE statement.
C. A UNIQUE and non-unique index can be created on the same table column.
D. An INVISIBLE index is not maintained when Data Manipulation Language (DML) is performed
on its underlying table.
E. A DROP INDEX statement always prevents updates to the table during the drop operation.
F. A descending index is a type of function-based index.
Answer: B,D,F (LEAVE A REPLY)
NEW QUESTION: 55
Examine this statement:
What is returned upon execution?
A. 2 rows
B. an error
C. 1 row
D. 0 rows
Answer: A (LEAVE A REPLY)
NEW QUESTION: 56
Examine the description of the SALES table:
NEW QUESTION: 57
View the Exhibit and examine the structure of the SALES and PRODUCTS tables. (Choose two.)
In the SALES table, PROD_ID is the foreign key referencing PROD_ID in the PRODUCTS table.
You must list each product ID and the number of times it has been sold.
Examine this query which is missing a JOIN operator:
Which two JOIN operations can be used to obtain the required output? (Choose two.)
A. LEFT OUTER JOIN
B. FULL OUTER JOIN
C. RIGHT OUTER JOIN
D. JOIN
Answer: A,B (LEAVE A REPLY)
NEW QUESTION: 58
Examine the structure of the ORDERS table:
You want to find the total value of all the orders for each year and issue this command:
SQL> SELECT TO_CHAR(order_date,'rr'), SUM(order_total) FROM orders
GROUP BY TO_CHAR(order_date, 'yyyy');
Which statement is true regarding the result? (Choose the best answer.)
A. It executes successfully and gives the correct output.
B. It return an error because the datatype conversion in the SELECT list does not match the data
type conversion in the GROUP BY clause.
C. It executes successfully but does not give the correct output.
D. It returns an error because the TO_CHAR function is not valid.
Answer: (SHOW ANSWER)
NEW QUESTION: 59
You need to display the date 11-oct-2007 in words as 'Eleventh of October, Two Thousand
Seven'.
Which SQL statement would give the required result?
A. SELECT TO_CHAR(TO_DATE('11-oct-2007'), 'fmDdspth of month, year')FROM DUAL;
B. SELECT TO_CHAR(TO_DATE('11-oct-2007'), 'fmDdthsp "of" Month, Year')FROM DUAL;
C. SELECT TO_DATE(TO_CHAR('11-oct-2007'), 'fmDdspth "of" Month, Year'))FROM DUAL;
D. SELECT TO_CHAR('11-oct-2007', 'fmDdspth "of" Month, Year')FROM DUAL;
Answer: B (LEAVE A REPLY)
NEW QUESTION: 60
The ORDERS table a primary key constrain on the ORDER_ID column.
The ORDER_ITEMS table has a foreign key constraint on the ORDER_ID column, referencing
the primary key of the ORDERS table.
The constraint is defined with ON DELETE CASCADS.
There are rows in the ORDERS table with an ORDER_TOTAL of less than 1000.
Which three DELETE statements execute successfully?
A. DELETE FROM orders WHERE order_total < 1000;
B. DELETE orders WHERE order_total < 1000;
C. DELETE * FROM orders WHERE order_total < 1000;
D. DELETE order_id FROM orders WHERE order_total < 1000;
E. DELETE FROM orders;
Answer: (SHOW ANSWER)
NEW QUESTION: 61
View the exhibit and examine the description for the SALES and CHANNELS tables.
You issued this SQL statement:
Valid 1z0-071 Dumps shared by Fast2test.com for Helping Passing 1z0-071 Exam!
Fast2test.com now offer the newest 1z0-071 exam dumps, the Fast2test.com 1z0-071 exam
questions have been updated and answers have been corrected get the newest
Fast2test.com 1z0-071 dumps with Test Engine here: https://www.fast2test.com/1z0-071-
premium-file.html (305 Q&As Dumps, 30%OFF Special Discount: freecram)
NEW QUESTION: 62
View the Exhibit and examine the structure of the CUSTOMERS table.
Using the CUSTOMERS table, you must generate a report that displays a credit limit increase of
15% for all customers.
Customers with no credit limit should have "Not Available" displayed.
Which SQL statement would produce the required result?
A. SELECT NVL(TO_CHAR(cust_credit_limit*.15),'Not Available') "NEW CREDIT"FROM
customers;
B. SELECT NVL(cust_credit_limit,'Not Available')*.15 "NEW CREDIT"FROM customers;
C. SELECT TO_CHAR(NVL(cust_credit_limit*.15,'Not Available')) "NEW CREDIT"FROM
customers;
D. SELECT NVL(cust_credit_limit*.15,'Not Available') "NEW CREDIT"FROM customers;
Answer: A (LEAVE A REPLY)
NEW QUESTION: 63
View the exhibit and examine the structure of the EMPLOYEES table.
You want to select all employees having 100 as their MANAGER_ID manages and their manager.
You want the output in two columns: the first column should have the employee's manager's
LAST_NAME and the second column should have the employee's LAST_NAME.
Which SQL statement would you execute?
A. SELECT m.last_name "Manager", e.last_name "Employee"FROM employees m JOIN
employees eON m.employee_id = e.manager_idWHERE e.manager_id=100;
B. SELECT m.last_name "Manager", e.last_name "Employee"FROM employees m JOIN
employees eON m.employee_id = e.manager_idWHERE m.manager_id=100;
C. SELECT m.last_name "Manager", e.last_name "Employee"FROM employees m JOIN
employees eWHERE m.employee_id = e.manager_id AND e.manager_id=100
D. SELECT m.last_name "Manager", e.last_name "Employee"FROM employees m JOIN
employees eON e.employee_id = m.manager_idWHERE m.manager_id=100;
Answer: A (LEAVE A REPLY)
NEW QUESTION: 64
Which three statements are true about views in an Oracle Database?
A. A SELECT statement cannot contain a WHERE clause when querying a view containing a
WHERE clause in its defining query.
B. Views have no object number.
C. Views can join tables only if they belong to the same schema.
D. A view can be created that refers to a non-existent table in its defining query.
E. Rows inserted into a table using a view are retained in the table if the view is dropped.
F. Views have no segment.
Answer: B,C,D (LEAVE A REPLY)
NEW QUESTION: 65
Examine the description of the PRODUCTS table:
NEW QUESTION: 66
Which two statements are true regarding the EXISTS operator used in the correlated subqueries?
(Choose two.)
A. The outer query stops evaluating the result set of the inner query when the first value is found.
B. It is used to test whether the values retrieved by the inner query exist in the result of the outer
query.
C. It is used to test whether the values retrieved by the outer query exist in the result set of the
inner query.
D. The outer query continues evaluating the result set of the inner query until all the values in the
result set are processed.
Answer: A,C (LEAVE A REPLY)
Explanation
http://www.techonthenet.com/oracle/exists.php
NEW QUESTION: 67
View the Exhibits and examine the structure of the costs and promotions tables.
You want to display prod_ids whose promotion cost is less than the highest cost PR0D_ID in a
promotion time interval.
Examine this SQL statement:
What will be the result?
A. It gives an error because the ROUP BY clause is not valid.
B. It gives an error because the all keyword is not valid.
C. It executes successfully but does not give the required result.
D. It executes successfully and gives the required result.
Answer: D (LEAVE A REPLY)
NEW QUESTION: 68
Which two statements are true about a full outer join?
A. The Oracle join operator (+) must be used on both sides of the join condition in the WHERE
clause.
B. It includes rows that are returned by an inner join.
C. It returns only unmatched rows from both tables being joined.
D. It returns matched and unmatched rows from both tables being joined.
E. It includes rows that are returned by a Cartesian product.
Answer: (SHOW ANSWER)
NEW QUESTION: 69
Examine the structure of the CUSTOMERS table: (Choose two.)
NEW QUESTION: 70
Which three statements are true about defining relations between tables in a relational database?
A. Primary key columns allow null values.
B. Foreign key columns allow null values.
C. Unique key columns allow null values.
D. Every foreign key value must refer to a matching primary or unique key value.
E. Every primary or unique key value must refer to a matching foreign key value.
Answer: A,D (LEAVE A REPLY)
NEW QUESTION: 71
Which three tasks can be performed using SQL functions built into Oracle Database? (Choose
three.)
A. displaying a date in a nondefault format
B. finding the number of characters in an expression
C. combining more than two columns or expressions into a single column in the output
D. substituting a character string in a text expression with a specified string
Answer: (SHOW ANSWER)
NEW QUESTION: 72
View the exhibit and examine the data in ORDERS_MASTER and MONTHLY_ORDERS tables.
NEW QUESTION: 73
SCOTT is a user in the database.
Evaluate the commands issued by the DBA:
NEW QUESTION: 74
Examine the description of the BOOKS_TRANSACTIONS table:
NEW QUESTION: 75
Sales data of a company is stored in two tables, SALES1 and SALES2, with some data being
duplicated across the tables. You want to display the results from the SALES1 table, which are
not present in the SALES2 table.
NEW QUESTION: 76
Which three statements are true about multiple-row subqueries? (Choose three.)
A. They can return multiple columns as well as rows.
B. They can contain a subquery within a subquery.
C. They can contain group functions and GROUP BY and HAVING clauses.
D. They can contain group functions and the GROUP BY clause, but not the HAVING clause.
E. They cannot contain a subquery within a subquery.
F. They can return only one column but multiple rows.
Answer: (SHOW ANSWER)
Valid 1z0-071 Dumps shared by Fast2test.com for Helping Passing 1z0-071 Exam!
Fast2test.com now offer the newest 1z0-071 exam dumps, the Fast2test.com 1z0-071 exam
questions have been updated and answers have been corrected get the newest
Fast2test.com 1z0-071 dumps with Test Engine here: https://www.fast2test.com/1z0-071-
premium-file.html (305 Q&As Dumps, 30%OFF Special Discount: freecram)
NEW QUESTION: 77
Which three statements are true about GLOBAL TEMPORARY TABLES?
A. A DELETE command on a GLOBAL TEMPORARY TABLE cannot be rolled back.
B. A GLOBAL TEMPORARY TABLE's definition is available to multiple sessions.
C. GLOBAL TEMPORARY TABLE space allocation occurs at session start.
D. Any GLOBAL TEMPORARY TABLE rows existing at session termination will be deleted.
E. A TRUNCATE command issued in a session causes all rows in a GLOBAL TEMPORARY
TABLE for the issuing session to be deleted.
F. GLOBAL TEMPORARY TABLE rows inserted by a session are available to any other session
whose user has been granted select on the table.
Answer: (SHOW ANSWER)
NEW QUESTION: 78
View the Exhibit and examine the structure of the ORDERS table. The columns ORDER_MODE
and ORDER_TOTAL have the default values 'direct' and 0 respectively.
Which two INSERT statements are valid? (Choose two.)
A. INSERT INTO ordersVALUES (1,'09-mar-2007', DEFAULT, 101, DEFAULT);
B. INSERT INTO(SELECT order_id,order_date,customer_id FROM orders)VALUES (1,'09-
mar-2007',
101);
C. INSERT INTO orders(order_id,order_date,order_mode,(customer_id,order_total)VALUES
(1,TO_DATE(NULL), 'online', 101, NULL);
D. INSERT INTO orders(order_id,order_date,order_mode,order_total)VALUES (1,'10-
mar-2007','online',1000);
E. INSERT INTO ordersVALUES (1,'09-mar-2007', 'online','', 1000);
Answer: A,B (LEAVE A REPLY)
NEW QUESTION: 79
View the exhibit and examine the structures of the EMPLOYEES and DEPARTMENTS tables.
NEW QUESTION: 80
Which two statements are true about Data Manipulation Language (DML) statements? (Choose
two.)
A. An INSERT INTO...VALUES.. statement can add multiple rows per execution to a table.
B. An UPDATE... SET... statement can modify multiple rows based on multiple conditions on a
table.
C. A DELETE FROM..... statement can remove rows based on only a single condition on a table.
D. An INSERT INTO... VALUES..... statement can add a single row based on multiple conditions
on a table.
E. A DELETE FROM..... statement can remove multiple rows based on multiple conditions on a
table.
F. An UPDATE....SET.... statement can modify multiple rows based on only a single condition on
a table.
Answer: B,E (LEAVE A REPLY)
Explanation
http://www.techonthenet.com/sql/and_or.php
Valid 1z0-071 Dumps shared by Fast2test.com for Helping Passing 1z0-071 Exam!
Fast2test.com now offer the newest 1z0-071 exam dumps, the Fast2test.com 1z0-071 exam
questions have been updated and answers have been corrected get the newest
Fast2test.com 1z0-071 dumps with Test Engine here: https://www.fast2test.com/1z0-071-
premium-file.html (305 Q&As Dumps, 30%OFF Special Discount: freecram)