PDF-1Z0-071
PDF-1Z0-071
All our exam practice questions and answers are only for our product buyers to get prepared for their
coming certification examinations. Any unauthorized sharing is forbidden. It may cause the suspending
of ones account, membership and product update if there is a violation of this rule.
Congratulations! You can visit www.Pass4Lead.com
and use your Order Number(Start with a capital letter
K) as the coupon code to enjoy 20% off on Next Order.
Vendor: Oracle
Q&As: 334 (There are 2 parts in the dump, 334 questions in total.)
Exam A
QUESTION 1
Evaluate the following SQL statement:
Identify three ORDER BY clauses either one of which can complete the query.
Explanation/Reference:
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.
QUESTION 2
Which three statements are true regarding the WHERE and HAVING clauses in a SQL statement?
(Choose three.)
QUESTION 3
Which statement is true regarding external tables?
A. The CREATE TABLE AS SELECT statement can be used to upload data into a normal table in the
database from an external table.
B. The data and metadata for an external table are stored outside the database.
C. The default REJECT LIMIT for external tables is UNLIMITED.
D. ORACLE_LOADER and ORACLE_DATAPUMP have exactly the same functionality when used with an
external table.
Correct Answer: A
Explanation
Explanation/Reference:
References:
https://docs.oracle.com/cd/B28359_01/server.111/b28310/tables013.htm
QUESTION 4
Which two statements are true about Data Manipulation Language (DML) statements?
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.
Correct Answer: BE
Explanation
Explanation/Reference:
References:
http://www.techonthenet.com/sql/and_or.php
QUESTION 5
Which two statements are true regarding roles? (Choose two.)
Correct Answer: BE
Explanation
Explanation/Reference:
References:
http://docs.oracle.com/cd/E25054_01/network.1111/e16543/authorization.htm#autoId28
QUESTION 6
Which two statements are true regarding constraints? (Choose two)
Correct Answer: CD
Explanation
QUESTION 7
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.
Correct Answer: A
Explanation
Explanation/Reference:
References:
http://psoug.org/definition/WHEN.htm
QUESTION 8
Examine the structure of the MEMBERS table:
You want to display details of all members who reside in states starting with the letter A followed by exactly
one character.
Correct Answer: B
Explanation
QUESTION 9
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?
Correct Answer: A
Explanation
QUESTION 10
Examine the structure of the MEMBERS table:
A. It fails because the alias name specified after the column names is invalid.
B. It fails because the space specified in single quotation marks after the first two column names is invalid.
C. It executes successfully and displays the column details in a single column with only the alias column
heading.
D. It executes successfully and displays the column details in three separate columns and replaces only
the last column heading with the alias.
Correct Answer: D
Explanation
QUESTION 11
You issue the following command to drop the PRODUCTS table:
Which three statements are true about the implication of this command? (Choose three.)
QUESTION 12
You execute the following commands:
For which substitution variables are you prompted for the input?
Correct Answer: D
Explanation
QUESTION 13
View the Exhibit and examine the structure of ORDERS and ORDER_ITEMS tables.
ORDER_ID is the primary key in the ORDERS table. It is also the foreign key in the ORDER_ITEMS table
wherein it is created with the ON DELETE CASCADE option.
Which DELETE statement would execute successfully?
A. DELETE orders o, order_items i
WHERE o.order_id = i.order_id;
B. DELETE
FROM orders
WHERE (SELECT order_id
FROM order_items);
C. DELETE orders
WHERE order_total < 1000;
D. DELETE order_id
FROM orders
WHERE order_total < 1000;
Correct Answer: C
Explanation
QUESTION 14
View the Exhibit and examine the structure of CUSTOMERS table.
Using the CUSTOMERS table, you need to generate a report that shows an increase in the credit limit by
15% for all customers. Customers whose credit limit has not been entered should have the message "Not
Available" displayed.
Correct Answer: A
Explanation
QUESTION 15
View the exhibit and examine the structures of the EMPLOYEES and DEPARTMENTS tables.
You want to update EMPLOYEES table as follows:
Update only those employees who work in Boston or Seattle (locations 2900 and 2700).
Set department_id for these employees to the department_id corresponding to London (location_id 2100).
Set the employees' salary in location_id 2100 to 1.1 times the average salary of their department.
Set the employees' commission in location_id 2100 to 1.5 times the average commission of their
department.
What is outcome?
A. It generates an error because multiple columns (SALARY, COMMISSION) cannot be specified together
in an UPDATE statement.
B. It generates an error because a subquery cannot have a join condition in a UPDATE statement.
C. It executes successfully and gives the desired update
D. It executes successfully but does not give the desired update
Correct Answer: D
Explanation
Explanation/Reference:
QUESTION 16
Evaluate the following two queries:
A. Performance would improve in query 2 only if there are null values in the CUST_CREDIT_LIMIT
column.
B. There would be no change in performance.
C. Performance would degrade in query 2.
D. Performance would improve in query 2.
Correct Answer: B
Explanation
QUESTION 17
Examine the business rule:
Each student can work on multiple projects and each project can have multiple students.
You need to design an Entity Relationship Model (ERD) for optimal data storage and allow for generating
reports in this format:
A. The ERD must have a 1:M relationship between the STUDENTS and PROJECTS entities.
B. The ERD must have a M:M relationship between the STUDENTS and PROJECTS entities that must be
resolved into 1:M relationships.
C. STUDENT_ID must be the primary key in the STUDENTS entity and foreign key in the PROJECTS
entity.
D. PROJECT_ID must be the primary key in the PROJECTS entity and foreign key in the STUDENTS
entity.
E. An associative table must be created with a composite key of STUDENT_ID and PROJECT_ID, which
is the foreign key linked to the STUDENTS and PROJECTS entities.
Correct Answer: BE
Explanation
Explanation/Reference:
References:
http://www.oracle.com/technetwork/issue-archive/2011/11-nov/o61sql-512018.html
QUESTION 18
View the Exhibit and examine the details of PRODUCT_INFORMATION table.
You have the requirement to 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 the following
SQL statement:
SELECT product_name
FROM product_information
WHERE (category_id = 12 AND category_id = 13) AND supplier_id = 102088;
Correct Answer: D
Explanation
QUESTION 19
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.
Correct Answer: AC
Explanation
Explanation/Reference:
References:
http://www.techonthenet.com/oracle/exists.php
QUESTION 20
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/100
FROM stores
WHERE MONTHS_BETWEEN (start_date, '01-JAN-2000') <=36;
B. SELECT name, concat (address| | ','| |city| |', ', country) AS full_address,
start_date,
property_price, property_price*115/100
FROM stores
WHERE TO_NUMBER(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/100
FROM stores
WHERE 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/100
FROM stores
WHERE MONTHS_BETWEEN (start_date, TO_DATE('01-JAN-2000','DD-MON-RRRR')) <=36;
Correct Answer: D
Explanation
QUESTION 21
The BOOKS_TRANSACTIONS table exists in your database.
A. The execution fails unless the numeral 3 in the ORDER BY clause is replaced by a column name.
B. Rows are displayed in the order that they are stored in the table only for the three rows with the lowest
values in the key column.
C. Rows are displayed in the order that they are stored in the table only for the first three rows.
D. Rows are displayed sorted in ascending order of the values in the third column in the table.
Correct Answer: D
Explanation
QUESTION 22
Examine the command:
Correct Answer: C
Explanation
QUESTION 23
View the exhibit and examine the structure of the EMPLOYEES table.
You want to display all employees and their managers having 100 as the MANAGER_ID. You want the
output in two columns: the first column would have the LAST_NAME of the managers and the second
column would have LAST_NAME of the employees.
Correct Answer: B
Explanation
QUESTION 24
Which three statements are true about multiple-row subqueries?
A. They can contain a subquery within a subquery.
B. They can return multiple columns as well as rows.
C. They cannot contain a subquery within a subquery.
D. They can return only one column but multiple rows.
E. They can contain group functions and GROUP BY and HAVING clauses.
F. They can contain group functions and the GROUP BY clause, but not the HAVING clause.
QUESTION 25
Examine the structure of the EMPLOYEES table.
Correct Answer: D
Explanation
QUESTION 26
Which normal form is a table in if it has no multi-valued attributes and no partial
dependencies?
Correct Answer: A
Explanation
Explanation/Reference:
References:
https://blog.udemy.com/database-normal-forms/
QUESTION 27
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.
A. INTERSECT
B. UNION
C. PLUS
D. MINUS
E. SUBTRACT
Correct Answer: D
Explanation
Explanation/Reference:
References:
https://docs.oracle.com/cd/B19306_01/server.102/b14200/queries004.htm
QUESTION 28
Evaluate the following ALTER TABLE statement:
A. After executing the ALTER TABLE command, you can add a new column called ORDER_DATE to the
ORDERS table.
B. The ORDER_DATE column must be empty for the ALTER TABLE command to execute successfully.
C. ROLLBACK can be used to get back the ORDER_DATE column in the ORDERS table.
D. The DESCRIBE command would still display the ORDER_DATE column.
Correct Answer: A
Explanation
QUESTION 29
Evaluate the following SQL statements that are issued in the given order:
A. It would remain disabled and can be enabled only by dropping the foreign key constraint and recreating
it.
B. It would remain disabled and has to be enabled manually using the ALTER TABLE command.
C. It would be automatically enabled and immediate.
D. It would be automatically enabled and deferred.
Correct Answer: B
Explanation
QUESTION 30
Which three statements are true regarding the data types? (Choose three.)
A. The minimum column width that can be specified for a VARCHAR2 data type column is one.
B. Only one LONG column can be used per table.
C. A TIMESTAMP data type column stores only time values with fractional seconds.
D. The BLOB data type column is used to store binary data in an operating system file.
E. The value for a CHAR data type column is blank-padded to the maximum defined column width.
QUESTION 31
Which three statements are true regarding subqueries? (Choose three.)
A. Multiple columns or expressions can be compared between the main query and subquery.
B. Subqueries can contain ORDER BY but not the GROUP BY clause.
C. Main query and subquery can get data from different tables.
D. Subqueries can contain GROUP BY and ORDER BY clauses.
E. Main query and subquery must get data from the same tables.
F. Only one column or expression can be compared between the main query and subquery.
Explanation/Reference:
References:
http://docs.oracle.com/javadb/10.6.2.1/ref/rrefsqlj13658.html
QUESTION 32
Which statement is true regarding the default behavior of the ORDER BY clause?
Correct Answer: A
Explanation
QUESTION 33
Examine the structure of the MEMBERS table.
Which query can be used to display the last names and city names only for members from the states MO
and MI?
A. SELECT last_name, city FROM members WHERE state ='MO' AND state ='MI';
B. SELECT last_name, city FROM members WHERE state LIKE 'M%';
C. SELECT last_name, city FROM members WHERE state IN ('MO', 'MI');
D. SELECT DISTINCT last_name, city FROM members WHERE state ='MO' OR state ='MI';
Correct Answer: C
Explanation
QUESTION 34
Which statement is true about an inner join specified in a query's WHERE clause?
Correct Answer: B
Explanation
QUESTION 35
Which task can be performed by using a single Data Manipulation Language (DML) statement?
Correct Answer: C
Explanation
QUESTION 36
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?
Correct Answer: C
Explanation
QUESTION 37
In which three situations does a transaction complete?
Explanation/Reference:
References:
https://docs.oracle.com/cd/B19306_01/server.102/b14220/transact.htm
QUESTION 38
View the exhibit and examine the data in ORDERS_MASTER and MONTHLY_ORDERS tables.
MERGE_INTO orders_master o
USING monthly_orders m
ON (o.order_id = m.order_id)
WHEN MATCHED THEN
UPDATE SET o.order_total = m.order_total
DELETE WHERE (m.order_total IS NULL)
WHEN NOT MATCHED THEN
INSERT VALUES (m.order_id, m.order_total)
Correct Answer: B
Explanation
Explanation/Reference:
References:
https://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9016.htm
QUESTION 39
Evaluate the following SQL statement:
You received the following error while executing the above query:
ERROR
ORA-01756: quoted string not properly terminated
A. Remove the single quotation marks enclosing the character literal string in the SELECT clause
B. Use the escape character to negate the single quotation mark within the literal character string in the
SELECT clause
C. Enclose the character literal string in the SELECT clause within double quotation marks
D. Use the Oracle (q) operator and delimiter to allow the use of a single quotation mark within the literal
character string in the SELECT clause
Correct Answer: D
Explanation
Explanation/Reference:
References:
http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements003.htm
QUESTION 40
View the exhibit and examine the ORDERS table.
The ORDERS table contains data and all orders have been assigned a customer ID. Which statement
would add a NOT NULL constraint to the CUSTOMER_ID column?
QUESTION 41
Examine the structure of the INVOICE table.
Correct Answer: AC
Explanation
QUESTION 42
Which three statements are true about the ALTER TABLE....DROP COLUMN.... command?
QUESTION 43
View the exhibit and examine the description of the PRODUCT_INFORMATION table.
Which SQL statement would retrieve from the table the number of products having LIST_PRICE as NULL?
Correct Answer: B
Explanation
QUESTION 44
Which three tasks can be performed using SQL functions built into Oracle Database?
QUESTION 45
The user SCOTT who is the owner of ORDERS and ORDER_ITEMS tables issues this GRANT command:
GRANT ALL
ON orders, order_items
TO PUBLIC;
Correct Answer: D
Explanation
Explanation/Reference:
References:
http://docs.oracle.com/javadb/10.8.3.0/ref/rrefsqljgrant.html
QUESTION 46
You are designing the structure of a table in which two columns have the specifications:
COMPONENT_ID - must be able to contain a maximum of 12 alphanumeric characters and must uniquely
identify the row
EXECUTION_DATETIME ?contains Century, Year, Month, Day, Hour, Minute, Second to the maximum
precision and is used for calculations and comparisons between components.
Which two options define the data types that satisfy these requirements most efficiently? (Choose two.)
Correct Answer: CF
Explanation
Explanation/Reference:
QUESTION 47
You want to display the date for the first Monday of the next month and issue the following command:
What is the outcome?
Correct Answer: C
Explanation
QUESTION 48
Which two statements are true regarding the GROUP BY clause in a SQL statement? (Choose two.)
Correct Answer: DE
Explanation
QUESTION 49
Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS tables:
You want to generate a list of all department IDs along with any course IDs that may have been assigned
to them.
Which SQL statement must you use?
Correct Answer: B
Explanation
QUESTION 50
Which two tasks can be performed by using Oracle SQL statements? (Choose two.)
Correct Answer: AC
Explanation
Explanation/Reference:
References:
http://www.techonthenet.com/oracle/password.php
https://docs.oracle.com/cd/B28359_01/server.111/b28324/tdpii_distdbs.htm
QUESTION 51
View the exhibit for the structure of the STUDENT and FACULTY tables.
You need to display the faculty name followed by the number of students handled by the faculty at the
base location.
Examine the following two SQL statements:
Statement 1
Statement 2
Correct Answer: B
Explanation
QUESTION 52
Which statement correctly grants a system privilege?
Correct Answer: C
Explanation
QUESTION 53
View the exhibit and examine the structure of ORDERS and CUSTOMERS tables.
Which INSERT statement should be used to add a row into the ORDERS table for the customer whose
CUST_LAST_NAME is Roberts and CREDIT_LIMIT is 600? Assume there exists only one row with
CUST_LAST_NAME as Roberts and CREDIT_LIMIT as 600.
Correct Answer: C
Explanation
QUESTION 54
Which three statements are correct regarding indexes? (Choose three.)
A. A non-deferrable PRIMARY KEY or UNIQUE KEY constraint in a table automatically attempts to create
a unique index.
B. Indexes should be created on columns that are frequently referenced as part of any expression.
C. When a table is dropped, corresponding indexes are automatically dropped.
D. For each DML operation performed on a table, the corresponding indexes are automatically updated if
required.
Explanation/Reference:
References:
http://viralpatel.net/blogs/understanding-primary-keypk-constraint-in-oracle/
QUESTION 55
View the exhibit and examine the description of the DEPARTMENTS and EMPLOYEES tables.
You wrote this SQL statement to retrieve EMPLOYEE_ID, FIRST_NAME, and DEPARTMENT NAME, for
all employees:
The desired output is not obtained after executing the above SQL statement. What could be the reason for
this?
A. The table prefix is missing for the column names in the SELECT clause.
B. The NATURAL JOIN clause is missing the USING clause.
C. The DEPARTMENTS table is not used before the EMPLOYEES table in the FROM clause.
D. The EMPLOYEES and DEPARTMENTS tables have more than one column with the same column
name and data type.
Correct Answer: D
Explanation
Explanation/Reference:
Natural join needs only one column to be the same in each table. The EMPLOYEES and DEPARTMENTS
tables have two columns that are the same (Department_ID and Manager_ID)
QUESTION 56
Which two statements are true about sequences created in a single instance Oracle database? (Choose
two.)
A. When the MAXVALUE limit for a sequence is reached, it can be increased by using the ALTER
SEQUENCE statement.
B. DELETE <sequencename> would remove a sequence from the database.
C. The numbers generated by an explicitly defined sequence can only be used to insert data in one table.
D. CURRVAL is used to refer to the most recent sequence number that has been generated for a
particular sequence.
E. When a database instance shuts down abnormally, sequence numbers that have been cached but not
used are available again when the instance is restarted.
Correct Answer: AD
Explanation
Explanation/Reference:
References:
http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_2012.htm#SQLRF00817
https://docs.oracle.com/cd/A84870_01/doc/server.816/a76989/ch26.htm
QUESTION 57
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?
A. finding the number of customers, in each city, whose credit limit is more than the average credit limit of
all the customers
B. finding the average credit limit of male customers residing in 'Tokyo' or 'Sydney'
C. listing of customers who do not have a credit limit and were born before 1980
D. finding the number of customers, in each city, whose marital status is 'married'.
E. listing of those customers, whose credit limit is the same as the credit limit of customers residing in the
city 'Tokyo'.
Correct Answer: AE
Explanation
QUESTION 58
Which statement is true about transactions?
A. A set of Data Manipulation Language (DML) statements executed in a sequence ending with a
SAVEPOINT forms a single transaction.
B. Each Data Definition Language (DDL) statement executed forms a single transaction.
C. A set of DDL statements executed in a sequence ending with a COMMIT forms a single transaction.
D. A combination of DDL and DML statements executed in a sequence ending with a COMMIT forms a
single transaction.
Correct Answer: B
Explanation
Explanation/Reference:
References:
https://docs.oracle.com/database/121/CNCPT/transact.htm#CNCPT038
QUESTION 59
View the exhibit and examine the structure in ORDERS and ORDER_ITEMS tables.
You need to create a view that displays the ORDER_ID, ORDER_DATE, and the total number of items in
each order.
Correct Answer: C
Explanation
QUESTION 60
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 requires the column names to be the same in all tables used for the join conditions.
C. It is applicable for equijoin and nonequijoin conditions.
D. It is applicable for only equijoin conditions.
Correct Answer: C
Explanation
QUESTION 61
Which statement is true regarding the INTERSECT operator?
Correct Answer: D
Explanation
Explanation/Reference:
INTERSECT Returns only the rows that occur in both queries' result sets, sorting them and removing
duplicates.
The columns in the queries that make up a compound query can have different names, but the output
result set will use the names of the columns in the first query.
QUESTION 62
Examine the following query:
SQL> SELECT prod_id, amount_sold
FROM sales
ORDER BY amount_sold
FETCH FIRST 5 PERCENT ROWS ONLY;
Correct Answer: C
Explanation
Explanation/Reference:
References:
https://oracle-base.com/articles/12c/row-limiting-clause-for-top-n-queries-12cr1
QUESTION 63
The first DROP operation is performed on PRODUCTS table using this command:
Correct Answer: D
Explanation
Explanation/Reference:
References:
https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9003.htm
QUESTION 64
These are the steps for a correlated subquery, listed in random order:
Which is the correct sequence in which the Oracle server evaluates a correlated subquery?
A. 2, 1, 4, 3
B. 4, 1, 2, 3
C. 4, 2, 1, 3
D. 2, 4, 1, 3
Correct Answer: D
Explanation
Explanation/Reference:
References:
http://rajanimohanty.blogspot.co.uk/2014/01/correlated-subquery.html
QUESTION 65
Evaluate the following query:
A. 150
B. 200
C. 160
D. 16
E. 100
Correct Answer: C
Explanation
Explanation/Reference:
References:
https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions135.htm
https://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_functions_2127.htm
QUESTION 66
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 need to display customers' second names where the second name starts with "Mc" or "MC".
Which query gives the required output?
Correct Answer: C
Explanation
QUESTION 67
View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables.
The PROD_ID column is the foreign key in the SALES table, which references the PRODUCTS table.
Similarly, the CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the
CUSTOMERS and TIMES tables, respectively.
Correct Answer: A
Explanation
QUESTION 68
Which two statements are true regarding the USING and ON clauses in table joins?
A. Both USING and ON clauses can be used for equijoins and nonequijoins.
B. A maximum of one pair of columns can be joined between two tables using the ON clause.
C. The ON clause can be used to join tables on columns that have different names but compatible data
types.
D. The WHERE clause can be used to apply additional conditions in SELECT statements containing the
ON or the USING clause.
Correct Answer: CD
Explanation
QUESTION 69
Which three statements are true regarding group functions? (Choose three.)
Explanation/Reference:
References:
https://www.safaribooksonline.com/library/view/mastering-oracle-sql/0596006322/ch04.html
QUESTION 70
Which three statements are true? (Choose three.)
Explanation/Reference:
References:
https://docs.oracle.com/cd/B10501_01/server.920/a96524/c05dicti.htm
QUESTION 71
View the exhibits and examine the structures of the COSTS and PROMOTIONS tables.
Correct Answer: D
Explanation
QUESTION 72
View the exhibit and examine the descriptions of the DEPT and LOCATIONS tables.
You want to update the CITY column of the DEPT table for all the rows with the corresponding value in the
CITY column of the LOCATIONS table for each department.
Correct Answer: D
Explanation
QUESTION 73
The BOOKS_TRANSACTIONS table exists in your schema in this database.
You execute this SQL statement when connected to your schema in your database instance.
SQL> SELECT * FROM books_transactions ORDER BY 3;
A. The execution fails unless the numeral 3 in the ORDER BY clause is replaced by a column name.
B. All table rows are displayed sorted in ascending order of the values in the third column.
C. The first three rows in the table are displayed in the order that they are stored.
D. Only the three rows with the lowest values in the key column are displayed in the order that they are
stored.
Correct Answer: B
Explanation
QUESTION 74
Which statement is true about Data Manipulation Language (DML)?
A. DML automatically disables foreign ley constraints when modifying primary key values in the parent
table.
B. Each DML statement forms a transaction by default.
C. A transaction can consist of one or more DML statements.
D. DML disables foreign key constraints when deleting primary key values in the parent table, only when
the ON DELETE CASCADE option is set for the foreign key constraint.
Correct Answer: C
Explanation
QUESTION 75
View the exhibit and examine the structure of the PROMOTIONS table.
You have to generate a report that displays the promo name and start date for all promos that started after
the last promo in the `INTERNET' category.
Correct Answer: C
Explanation
QUESTION 76
View the Exhibit and examine the structure of the ORDER_ITEMS table.
Examine the following SQL statement:
SELECT order_id, product_id, unit_price
FROM order_items
WHERE unit_price =
(SELECT MAX(unit_price)
FROM order_items
GROUP BY order_id);
You want to display the PRODUCT_ID of the product that has the highest UNIT_PRICE per ORDER_ID.
What correction should be made in the above SQL statement to achieve this?
A. Remove the GROUP BY clause from the subquery and place it in the main query
B. Replace = with the >ANY operator
C. Replace = with the >ALL operator
D. Replace = with the IN operator
Correct Answer: D
Explanation
QUESTION 77
Evaluate the following CREATE TABLE command:
Correct Answer: A
Explanation
QUESTION 78
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.
A. SELECT cust_income_level || ` ' || cust_credit_limit * 0.50 AS "50% Credit Limit" FROM customers.
B. SELECT DISTINCT cust_income_level || ` ' || cust_credit_limit * 0.50 AS "50% Credit Limit" FROM
customers.
C. SELECT DISTINCT cust_income_level, DISTINCT cust_credit_limit * 0.50 AS "50% Credit Limit"
FROM customers.
D. SELECT cust_income_level, DISTINCT cust_credit_limit * 0.50 AS "50% Credit Limit" FROM
customers
Correct Answer: B
Explanation
QUESTION 79
Which three statements are true regarding the SQL WHERE and HAVING clauses?
QUESTION 80
You need to display the date 11-oct-2007 in words as `Eleventh of October, Two Thousand Seven'.
Correct Answer: A
Explanation
QUESTION 81
Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS:
You want to generate a report that shows all course IDs irrespective of whether they have corresponding
department IDs or not but no department IDs if they do not have any courses.
Correct Answer: C
Explanation
QUESTION 82
View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables.
The PROD_ID column is the foreign key in the SALES table referencing the PRODUCTS table.
The CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the
CUSTOMERS and TIMES tables, respectively.
A. The NEW_SALES table would get created and all the FOREIGN KEY constraints defined on the
selected columns from the SALES table would be created on the corresponding columns in the
NEW_SALES table.
B. The NEW_SALES table would not get created because the column names in the CREATE TABLE
command and the SELECT clause do not match.
C. The NEW_SALES table would not get created because the DEFAULT value cannot be specified in the
column definition.
D. The NEW_SALES table would get created and all the NOT NULL constraints defined on the selected
columns from the SALES table would be created on the corresponding columns in the NEW_SALES
table.
Correct Answer: D
Explanation
QUESTION 83
View the Exhibit and examine the structure of the ORDERS table. The ORDER_ID column is the
PRIMARY KEY in the ORDERS table.
Evaluate the following CREATE TABLE command:
CREATE TABLE new_orders(ord_id, ord_date DEFAULT SYSDATE, cus_id)
AS
SELECT order_id.order_date,customer_id
FROM orders;
A. The NEW_ODRDERS table would not get created because the DEFAULT value cannot be specified in
the column definition.
B. The NEW_ODRDERS table would get created and only the NOT NULL constraint defined on the
specified columns would be passed to the new table.
C. The NEW_ODRDERS table would not get created because the column names in the CREATE TABLE
command and the SELECT clause do not match.
D. The NEW_ODRDERS table would get created and all the constraints defined on the specified columns
in the ORDERS table would be passed to the new table.
Correct Answer: B
Explanation
QUESTION 84
Evaluate the following statement.
Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT
statement?
A. Each row is evaluated by the first WHEN clause and if the condition is false then the row would be
evaluated by the subsequent when clauses.
B. All rows are evaluated by all the three WHEN clauses.
C. Each row is evaluated by the first WHEN clause and if the condition is true, then the row would be
evaluated by the subsequent when clauses.
D. The INSERT statement will return an error because the ELSE clause is missing.
Correct Answer: B
Explanation
QUESTION 85
Which two statements are true regarding the SQL GROUP BY clause?
A. You can use a column alias in the GROUP BY clause.
B. Using the WHERE clause after the GROUP BY clause excludes rows after creating groups.
C. The GROUP BY clause is mandatory if you are using an aggregating function in the SELECT clause.
D. Using the WHERE clause before the GROUP BY clause excludes rows before creating groups.
E. If the SELECT clause has an aggregating function, then columns without an aggregating function in the
SELECT clause should be included in the GROUP BY clause.
Correct Answer: DE
Explanation
QUESTION 86
You issue this command which succeeds:
SQL> DROP TABLE products;
A. All existing views and synonyms that refer to the table are invalidated but retained.
B. Any uncommitted transaction in the session is committed.
C. Table data and the table structure are deleted.
D. All the table's indexes if any exist, are invalidated but retained.
E. Table data is deleted but the table structure is retained.
QUESTION 87
You execute the SQL statement:
A. It fails because the NOT NULL and DEFAULT options cannot be combined for the same column.
B. It succeeds and CITY can contain only `SEATTLE' or null for all rows.
C. It fails because the condition for the CNAMES constraint is not valid.
D. It succeeds and an index is created for CITIZEN_ID.
Correct Answer: A
Explanation
QUESTION 88
Evaluate the following CREATE TABLE commands:
CREATE_TABLE orders
(ord_no NUMBER (2) CONSTRAINT ord_pk PRIMARY KEY,
ord_date DATE,
cust_id NUMBER (4) );
The above command fails when executed. What could be the reason?
Correct Answer: A
Explanation
QUESTION 89
Examine the structure of the PROGRAMS table:
Correct Answer: BD
Explanation
QUESTION 90
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.
Correct Answer: A
Explanation
QUESTION 91
Examine these SQL statements that are executed in the given order:
What will be the status of the foreign key EMP_MGR_FK?
Correct Answer: C
Explanation
QUESTION 92
View the Exhibit and examine the structure in the EMPLOYEES tables.
Evaluate the following SQL statement:
A. The statement would not execute because the positional notation instead of the column name should
be used with the ORDER BY clause.
B. The statement would execute successfully and display all the rows in the ascending order of
DEPARTMENT_ID.
C. The statement would execute successfully but it will ignore the ORDER BY clause and display the rows
in random order.
D. The statement would not execute because the ORDER BY clause should appear only at the end of the
SQL statement, that is, in the last SELECT statement.
Correct Answer: D
Explanation
QUESTION 93
View the Exhibit and examine the description for the SALES and CHANNELS tables. (Choose the best
answer.)
You issued this SQL statement:
Which statement is true regarding the result?
A. The statement will fail because the subquery in the VALUES clause is not enclosed within single
quotation marks.
B. The statement will fail because a subquery cannot be used in a VALUES clause.
C. The statement will execute and a new row will be inserted in the SALES table.
D. The statement will fail because the VALUES clause is not required with the subquery.
Correct Answer: C
Explanation
QUESTION 94
View the Exhibit and examine the description of the ORDERS table.
Which two WHERE clause conditions demonstrate the correct usage of conversion functions? (Choose
two.)
QUESTION 95
Which three arithmetic operations can be performed on a column by using a SQL function that is built into
Oracle database? (Choose three.)
QUESTION 96
View the Exhibit and examine the structure of the EMPLOYEES and JOB_HISTORY tables.
Examine this query which must select the employee IDs of all the employees who have held the job
SA_MAN at any time during their employment.
SELECT EMPLOYEE_ID
FROM EMPLOYEES
WHERE JOB_ID = 'SA_MAN'
-------------------------------------
SELECT EMPLOYEE_ID
FROM JOB_HISTORY
WHERE JOB_ID = 'SA_MAN';
Choose two correct SET operators which would cause the query to return the desired result.
A. UNION
B. MINUS
C. INTERSECT
D. UNION ALL
Correct Answer: AD
Explanation
QUESTION 97
You must create a SALES table with these column specifications and data types: (Choose the best
answer.)
SALESID: Number
STOREID: Number
ITEMID: Number
QTY: Number, should be set to 1 when no value is specified
SLSDATE: Date, should be set to current date when no value is specified
PAYMENT: Characters up to 30 characters, should be set to CASH when no value is specified
Correct Answer: D
Explanation
QUESTION 98
View the Exhibit and examine the details of the PRODUCT_INFORMATION table.
Which two statements are true regarding the output? (Choose two.)
A. A row whose LIST_PRICE column contains value 11235.90 would be displayed as #######.
B. A row whose LIST_PRICE column contains value 1123.90 would be displayed as $1,123.
C. A row whose LIST_PRICE column contains value 1123.90 would be displayed as $1,124.
D. A row whose LIST_PRICE column contains value 11235.90 would be displayed as $1,123.
Correct Answer: AC
Explanation
QUESTION 99
Which statement is true about SQL query processing in an Oracle database instance? (Choose the best
answer.)
A. During parsing, a SQL statement containing literals in the WHERE clause that has been executed by
any session and which is cached in memory, is always reused for the current execution.
B. During execution, the Oracle server may read data from storage if the required data is not already in
memory.
C. During row source generation, rows that satisfy the query are retrieved from the database and stored in
memory.
D. During optimization, execution plans are formulated based on the statistics gathered by the database
instance, and the lowest cost plan is selected for execution.
Correct Answer: B
Explanation
QUESTION 100
Examine the structure of the ORDERS table: (Choose the best answer.)
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');
Correct Answer: D
Explanation
QUESTION 101
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.
A. SELECT order_id
FROM order_items
GROUP BY order_id
HAVING SUM(unit_price*quantity) = (SELECT MAX(SUM(unit_price*quantity))
FROM order_items GROUP BY order_id);
B. SELECT order_id
FROM order_items
WHERE(unit_price*quantity) = (SELECT MAX(unit_price*quantity)
FROM order_items)
GROUP BY order_id;
C. SELECT order_id
FROM order_items
WHERE(unit_price*quantity) = MAX(unit_price*quantity)
GROUP BY order_id;
D. SELECT order_id
FROM order_items
WHERE (unit_price*quantity) = (SELECT MAX(unit_price*quantity)
FROM order_items
GROUP BY order_id)
Correct Answer: A
Explanation
QUESTION 102
View the Exhibit and examine the structure of the EMP table which is not partitioned and not an index-
organized table. (Choose two.)
A. The FIRST_NAME column can be dropped even if it is part of a composite PRIMARY KEY provided the
CASCADE option is added to the SQL statement.
B. The FIRST_NAME column would be dropped provided at least one column remains in the table.
C. The FIRST_NAME column would be dropped provided it does not contain any data.
D. The drop of the FIRST_NAME column can be rolled back provided the SET UNUSED option is added
to the SQL statement.
Correct Answer: B
Explanation
QUESTION 103
View the exhibit and examine the structure and data in the INVOICE table.
Which two SQL statements would execute successfully? (Choose two.)
Correct Answer: CD
Explanation
QUESTION 104
Which two statements best describe the benefits of using the WITH clause? (Choose two.)
A. It can improve the performance of a large query by storing the result of a query block having the WITH
clause in the session's temporary tablespace.
B. It enables sessions to reuse the same query block in a SELECT statement, if it occurs more than once
in a complex query.
C. It enables sessions to store a query block permanently in memory and use it to create complex queries.
D. It enables sessions to store the results of a query permanently.
Correct Answer: AB
Explanation
QUESTION 105
Which three statements are true regarding subqueries? (Choose three.)
QUESTION 106
Which two statements are true regarding single row functions? (Choose two.)
Correct Answer: BD
Explanation
QUESTION 107
View the Exhibit and examine the structure of the ORDERS table.
You must select ORDER_ID and ORDER_DATE for all orders that were placed after the last order placed
by CUSTOMER_ID 101.
Correct Answer: C
Explanation
QUESTION 108
You must display details of all users whose username contains the string 'ch_'. (Choose the best answer.)
Correct Answer: B
Explanation
QUESTION 109
Which three statements are true regarding the usage of the WITH clause in complex correlated
subqueries? (Choose three.)
QUESTION 110
View the Exhibit and examine the data in the PRODUCTS table.
You must display product names from the PRODUCTS table that belong to the 'Software/other' category
with minimum prices as either $2000 or $4000 and with no unit of measure.
Correct Answer: A
Explanation
QUESTION 111
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.)
Correct Answer: BD
Explanation
QUESTION 112
Which two statements are true regarding subqueries? (Choose two.)
Correct Answer: AC
Explanation
QUESTION 113
Which two statements are true regarding the execution of the correlated subqueries? (Choose two.)
A. The nested query executes after the outer query returns the row.
B. The nested query executes first and then the outer query executes.
C. The outer query executes only once for the result returned by the inner query.
D. Each row returned by the outer query is evaluated for the results returned by the inner query.
Correct Answer: AD
Explanation
QUESTION 114
Which two statement are true regarding table joins available in the Oracle Database server? (Choose two.)
A. You can use the ON clause to specify multiple conditions while joining tables.
B. You can explicitly provide the join condition with a NATURAL JOIN.
C. You can use the JOIN clause to join only two tables.
D. You can use the USING clause to join tables on more than one column.
Correct Answer: AD
Explanation
QUESTION 115
You issued this command:
QUESTION 116
View the exhibit and examine the data in the PROJ_TASK_DETAILS table. (Choose the best answer.)
The PROJ_TASK_DETAILS table stores information about project tasks and the relation between them.
You must generate a report listing all task IDs, the task ID of any task upon which it depends and the name
of the employee in charge of the task upon which it depends.
Correct Answer: D
Explanation
QUESTION 117
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.
Which two JOIN operations can be used to obtain the required output?
Correct Answer: AC
Explanation
QUESTION 118
View the exhibit and examine the description of the EMPLOYEES table. (Choose two.)
You executed this SQL statement:
Which two statements are true regarding the result? (Choose two.)
A. The values in the SALARY column would be returned in descending order for all employees having the
same value in the DEPARTMENT_ID and FIRST_NAME column.
B. The values in the FIRST_NAME column would be returned in ascending order for all employees having
the same value in the DEPARTMENT_ID column.
C. The values in the SALARY column would be returned in descending order for all employees having the
same value in the DEPARTMENT_ID column.
D. The values in all columns would be returned in descending order.
E. The values in the FIRST_NAME column would be returned in descending order for all employees
having the same value in the DEPARTMENT_ID column.
Correct Answer: AB
Explanation
QUESTION 119
Examine the structure of the SALES table.
Examine this statement:
Which two statements are true about the SALES1 table? (Choose two.)
A. It will not be created because the column-specified names in the SELECT and CREATE TABLE
clauses do not match.
B. It will have NOT NULL constraints on the selected columns which had those constraints in the SALES
table.
C. It will not be created because of the invalid WHERE clause.
D. It is created with no rows.
E. It has PRIMARY KEY and UNIQUE constraints on the selected columns which had those constraints in
the SALES table.
Correct Answer: BD
Explanation
QUESTION 120
Examine this SELECT statement and view the Exhibit to see its output:
SELECT constraints_name, constraints_type, search_condition, r_constraints_name, delete_rule, status,
FROM user_constraints
WHERE table_name = 'ORDERS';
Which two statements are true about the output? (Choose two.)
A. The DELETE_RULE column indicates the desired state of related rows in the child table when the
corresponding row is deleted from the parent table.
B. The R_CONSTRAINT_NAME column contains an alternative name for the constraint.
C. In the second column, 'c' indicates a check constraint.
D. The STATUS column indicates whether the table is currently in use.
Correct Answer: AC
Explanation
QUESTION 121
Which two statements are true regarding constraints? (Choose two.)
A. All constraints can be defined at the column level and at the table level.
B. A constraint can be disabled even if the constraint column contains data.
C. A column with the UNIQUE constraint can contain NULLS.
D. A foreign key column cannot contain NULLS.
E. A constraint is enforced only for INSERT operations.
Correct Answer: BC
Explanation
QUESTION 122
Which two statements are true regarding working with dates? (Choose two.)
A. The RR date format automatically calculates the century from the SYSDATE function but allows the
session user to enter the century.
B. The RR date format automatically calculates the century from the SYSDATE function and does not
allow a session user to enter the century.
C. The default internal storage of dates is in character format.
D. The default internal storage of dates is in numeric format.
Correct Answer: AD
Explanation
QUESTION 123
View the Exhibit and examine the structure of ORDERS and CUSTOMERS tables. (Choose the best
answer.)
Correct Answer: C
Explanation
QUESTION 124
View the Exhibit and examine the structure of the PRODUCTS table.
You must display the category with the maximum number of items.
A. It generates an error because = is not valid and should be replaced by the IN operator.
B. It executes successfully but does not give the correct output.
C. It executes successfully and gives the correct output.
D. It generate an error because the subquery does not have a GROUP BY clause.
Correct Answer: D
Explanation
QUESTION 125
Examine the structure of the MEMBERS table: (Choose the best answer.)
A. It displays all cities in descending order, within which the last names are further sorted in descending
order.
B. It fails because a column alias cannot be used in the ORDER BY clause.
C. It fails because a column number and a column alias cannot be used together in the ORDER BY
clause.
D. It displays all cities in ascending order, within which the last names are further sorted in descending
order.
Correct Answer: D
Explanation
QUESTION 126
View and Exhibit and examine the structure and data in the INVOICE table.
Which two statements are true regarding data type conversion in query expressions? (Choose two.)
Correct Answer: AE
Explanation
QUESTION 127
Examine the structure of the EMPLOYEES table.
You must display the details of employees who have manager with MANAGER_ID 100, who were hired in
the past 6 months and who have salaries greater than 10000.
Which query would retrieve the required result?
Correct Answer: C
Explanation
QUESTION 128
Examine the structure of the PROMOTIONS table: (Choose the best answer.)
Management requires a report of unique promotion costs in each promotion category.
Correct Answer: A
Explanation
QUESTION 129
You must create a table for a banking application.
A. DATE
B. NUMBER
C. TIMESTAMP
D. INTERVAL DAY TO SECOND
E. INTERVAL YEAR TO MONTH
Correct Answer: D
Explanation
QUESTION 130
Examine the structure of the CUSTOMERS table: (Choose two.)
Which two methods can you use to get the required result?
A. Subquery
B. Self-join
C. Full outer-join with self-join
D. Left outer-join with self-join
E. Right outer-join with self-join
Correct Answer: AB
Explanation
QUESTION 131
Which two are the minimal requirements for a self-join? (Choose two.)
Correct Answer: CE
Explanation
QUESTION 132
Examine the SQL statement used to create the TRANSACTION table.
The value 'A1' does not exist for trn_id in this table.
Which SQL statement successfully inserts a row into the table with the default value for START_DATE?
Correct Answer: C
Explanation
QUESTION 133
Which three SQL statements would display the value 1890.55 as $1,890.55? (Choose three.)
QUESTION 134
A subquery is called a single-row subquery when _______.
A. There is only one subquery in the outer query and the inner query returns one or more values
B. The inner query returns a single value to the outer query.
C. The inner query uses an aggregating function and returns one or more values.
D. The inner query returns one or more values and the outer query returns a single value.
Correct Answer: B
Explanation
QUESTION 135
You must write a query that prompts users for column names and conditions every time it is executed.
The user must be prompted only once for the table name.
Correct Answer: C
Explanation
QUESTION 136
Which three statements are true regarding single-row functions? (Choose three.)
A. The data type returned, can be different from the data type of the argument that is referenced.
B. They can return multiple values of more than one data type.
C. They can accept only one argument.
D. They can be nested up to only two levels.
E. They can be used in SELECT, WHERE, and ORDER BY clauses.
F. They can accept column names, expressions, variable names, or a user-supplied constants as
arguments.
QUESTION 137
View the Exhibit and examine the structure in the DEPARTMENTS tables. (Choose two.)
Examine this SQL statement:
A. ORDER BY DEPT_NAME;
B. ORDER BY DEPT_ID;
C. ORDER BY 'b';
D. ORDER BY 3;
Correct Answer: BD
Explanation
QUESTION 138
Which two statements are true regarding the WHERE and HAVING clauses in a SELECT statement?
(Choose two.)
A. The WHERE and HAVING clauses can be used in the same statement only if they are applied to
different columns in the table.
B. The aggregate functions and columns used in the HAVING clause must be specified in the SELECT list
of the query.
C. The WHERE clause can be used to exclude rows after dividing them into groups.
D. The HAVING clause can be used with aggregate functions in subqueries.
E. The WHERE clause can be used to exclude rows before dividing them into groups.
Correct Answer: CD
Explanation
QUESTION 139
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.)
Correct Answer: BE
Explanation
QUESTION 140
View the Exhibit and examine the structure of the PRODUCT_INFORMATION table. (Choose the best
answer.)
PRODUCT_ID column is the primary key.
Correct Answer: D
Explanation
QUESTION 141
Examine the types and examples of relationship that follow:
Correct Answer: C
Explanation
QUESTION 142
A non-correlated subquery can be defined as __________. (Choose the best answer.)
A. A set of one or more sequential queries in which generally the result of the inner query is used as the
search value in the outer query.
B. A set of sequential queries, all of which must return values from the same table.
C. A set of sequential queries, all of which must always return a single value.
D. A SELECT statement that can be embedded in a clause of another SELECT statement only.
Correct Answer: A
Explanation
QUESTION 143
Which three statements are true reading subqueries? (Choose three.)
QUESTION 144
See the Exhibit and examine the structure of the PROMOTIONS table:
Using the PROMOTIONS table,
you need to find out the average cost for all promos in the range $0-2000 and $2000-5000 in
category A.
A. It generates an error because multiple conditions cannot be specified for the WHEN clause.
B. It executes successfully and gives the required result.
C. It generates an error because CASE cannot be used with group functions.
D. It generates an error because NULL cannot be specified as a return value.
Correct Answer: B
Explanation
Explanation/Reference:
CASE Expression
Facilitates conditional inquiries by doing the work of an IF-THEN-ELSE statement:
CASE expr WHEN comparison_expr1 THEN return_expr1
[WHEN comparison_expr2 THEN return_expr2
WHEN comparison_exprn THEN return_exprn
ELSE else_expr]
END
QUESTION 145
Which two statements are true regarding multiple-row subqueries? (Choose two.)
Correct Answer: AE
Explanation
QUESTION 146
View the Exhibit and examine the structure of the CUSTOMERS and CUST_HISTORY tables.
The CUSTOMERS table contains the current location of all currently active customers.
The CUST_HISTORY table stores historical details relating to any changes in the location of all current as
well as previous customers who are no longer active with the company.
You need to find those customers who have never changed their address.
Which SET operator would you use to get the required output?
A. INTERSECT
B. UNION ALL
C. MINUS
D. UNION
Correct Answer: C
Explanation
QUESTION 147
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:
Correct Answer: A
Explanation
QUESTION 148
Which statement is true regarding the UNION operator?
Correct Answer: B
Explanation
QUESTION 149
You issued the following command:
SQL> DROP TABLE employees;
Which three statements are true?
QUESTION 150
Examine the create table statements for the stores and sales tables.
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));
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?
QUESTION 151
In the customers table, the CUST_CITY column contains the value 'Paris' for the
CUST_FIRST_NAME 'Abigail'.
Evaluate the following query:
Correct Answer: B
Explanation
QUESTION 152
Which two statements are true regarding constraints?
Correct Answer: BD
Explanation
QUESTION 153
On your Oracle 12c database, you invoked SQL *Loader to load data into the EMPLOYEES table in the
HR schema by issuing the following command:
A. It succeeds with default settings if the EMPLOYEES table belonging to HR is already defined in the
database.
B. It fails because no SQL *Loader data file location is specified.
C. It fails if the HR user does not have the CREATE ANY DIRECTORY privilege.
D. It fails because no SQL *Loader control file location is specified.
Correct Answer: AC
Explanation
QUESTION 154
You notice a performance change in your production Oracle 12c database. You want to know which
change caused this performance difference.
Correct Answer: B
Explanation
QUESTION 155
Which statement is true about Enterprise Manager (EM) express in Oracle Database 12c?
Correct Answer: A
Explanation
QUESTION 156
Which two partitioned table maintenance operations support asynchronous Global Index Maintenance in
Oracle database 12c?
Correct Answer: CE
Explanation
QUESTION 157
View the Exhibits and examine PRODUCTS and SALES tables.
Exhibit 1
Exhibit 2
You issue the following query to display product name the number of times the product has been sold:
Correct Answer: A
Explanation
QUESTION 158
Examine the structure of the BOOKS_TRANSACTIONS table:
A. It displays details only for members who have borrowed before today with RM as
TRANSACTION_TYPE.
B. It displays details for members who have borrowed before today's date with either RM as
TRANSACTION_TYPE or MEMBER_ID as A101 and A102.
C. It displays details for only members A101 and A102 who have borrowed before today with RM
TRANSACTION_TYPE.
D. It displays details for members who have borrowed before today with RM as TRANSACTION_TYPE
and the details for members A101 or A102.
Correct Answer: D
Explanation
QUESTION 159
View the Exhibit and examine the data in the EMPLOYEES table.
Exhibit
You want to generate a report showing the total compensation paid to each employee to date.
Correct Answer: A
Explanation
QUESTION 160
Evaluate the following query
What is the correct output of the above query?
Correct Answer: B
Explanation
QUESTION 161
Which two statements are true regarding savepoints? (Choose two.)
Correct Answer: AB
Explanation
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14200/
statements_10001.htm#SQLRF01701
QUESTION 162
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.
Correct Answer: B
Explanation
QUESTION 163
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.
A. It would not execute because the entire WHERE clause is not enclosed within parentheses.
B. It would execute but would return no rows.
C. It would not execute because the same column has been used twice with the AND logical operator.
D. It would execute and return the desired result.
Correct Answer: B
Explanation
QUESTION 164
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.
Correct Answer: A
Explanation
QUESTION 165
View the Exhibit and examine the structure of the ORDERS table.
Which UPDATE statement is valid?
A. UPDATE orders
SET order_date = '12-mar-2007',
order_total IS NULL
WHERE order_id = 2455;
B. UPDATE orders
SET order_date = '12-mar-2007',
AND order_total = TO_NUMBER(NULL)
WHERE order_id = 2455;
C. UPDATE orders
SET order_date = '12-mar-2007',
order_total = NULL
WHERE order_id = 2455;
D. UPDATE orders
SET order_date = TO_DATE('12-mar-2007','dd-mon-yyyy'),
SET order_total = TO_NUMBER (NULL)
WHERE order_id = 2455;
Correct Answer: C
Explanation
QUESTION 166
SCOTT is a user in the database.
A. Statement 1 would not execute because the WITH GRANT option is missing.
B. Statement 2 would not execute because system privileges and object privileges cannot be granted
together in a single GRANT command.
C. Statement 3 would not execute because role and system privileges cannot be granted together in a
single GRANT statement.
D. Statement 1 would not execute because the IDENTIFIED BY <password> clause is missing.
Correct Answer: B
Explanation
QUESTION 167
View the Exhibit and examine the data in the PRODUCT_INFORMATION table.
A. displaying all the products whose minimum list prices are more than average list price of products
having the status orderable
B. displaying the total number of products supplied by supplier 102071 and having product status
OBSOLETE
C. displaying the number of products whose list prices are more than the average list price
D. displaying all supplier IDs whose average list price is more than 500
E. displaying the minimum list price for each product status
Correct Answer: AC
Explanation
QUESTION 168
View the Exhibit and examine the description of the EMPLOYEES table.
You want to calculate the total remuneration for each employee. Total remuneration is the sum of the
annual salary and the percentage commission earned for a year. Only a few employees earn commission.
Which SQL statement would you execute to get the desired output?
Correct Answer: A
Explanation
QUESTION 169
View the Exhibit and examine the structure of the PROMOTIONS table.
Evaluate the following SQL statement:
A. It produces an error because subqueries cannot be used with the CASE expression.
B. It shows COST_REMARK for all the promos in the promo category `TV'.
C. It shows COST_REMARK for all the promos in the table.
D. It produces an error because the subquery gives an error.
Correct Answer: C
Explanation
QUESTION 170
Which statement is true regarding the USING clause in table joins? (Choose two.)
Correct Answer: CD
Explanation
QUESTION 171
Examine the structure proposed for the TRANSACTIONS table:
Which two statements are true regarding the storage of data in the above table structure? (Choose two.)
A. The CUST_CREDIT_VALUE column would allow storage of positive and negative integers.
B. The TRANS_VALIDITY column would allow storage of a time interval in days, hours, minutes, and
seconds.
C. The CUST_STATUS column would allow storage of data up to the maximum VARCHAR2 size of 4,000
characters.
D. The TRANS_DATE column would allow storage of dates only in the dd-mon-yyyy format.
Correct Answer: AB
Explanation
QUESTION 172
Examine the structure of the MARKS table:
Correct Answer: AC
Explanation
QUESTION 173
Examine the data in the CUSTOMERS table:
You want to list all cities that have more than one customer along with the customer details.
Which two JOIN options can be used in the blank in the above query to give the correct output? (Choose
two.)
Correct Answer: BD
Explanation
QUESTION 174
Examine the structure proposed for the TRANSACTIONS table:
Which two statements are true regarding the creation and storage of data in the above table structure?
(Choose two.)
Correct Answer: AF
Explanation
QUESTION 175
View the Exhibit and examine the structure of the PRODUCT_INFORMATION and INVENTORIES tables.
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 wherein QUANTITY_ON_HAND is less
than five.
Which two SQL statements can accomplish the task? (Choose two.)
QUESTION 176
In the EMPLOYEES table there are 1000 rows and employees are working in the company for more than
10 years.
Correct Answer: B
Explanation
QUESTION 177
Which statement adds a column called SALARY to the EMPLOYEES table having 100 rows, which cannot
contain null?
Correct Answer: A
Explanation
QUESTION 178
View the Exhibit and examine the data in the PROMOTIONS table.
PROMO_BEGIN_DATE is stored in the default date format, dd-mon-rr.
You need to produce a report that provides the name, cost, and start date of all promos in the POST
category that were launched before January 1, 2000.
Correct Answer: D
Explanation
QUESTION 179
Which two statements are true regarding views? (Choose two.)
A. The WITH CHECK OPTION constraint can be used in a view definition to restrict the columns
displayed through the view.
B. The OR REPLACE option is used to change the definition of an existing view without dropping and re-
creating it.
C. Rows cannot be deleted through a view if the view definition contains the DISTINCT keyword.
D. Rows added through a view are deleted from the table automatically when the view is dropped.
E. A simple view in which column aliases have been used cannot be updated.
F. A subquery used in a complex view definition cannot contain group functions or joins.
Correct Answer: BC
Explanation
QUESTION 180
View the Exhibit and examine the structure of CUSTOMERS table.
Correct Answer: D
Explanation
QUESTION 181
Evaluate the following CREATE SEQUENCE statement:
The sequence SEQ1 has generated numbers up to the maximum limit of 200. You issue the following SQL
statement:
A. 100
B. an error
C. 10
D. 1
Correct Answer: D
Explanation
QUESTION 182
Which statement is true regarding the SESSION_PRIVS dictionary view?
A. It contains the object privileges granted to other users by the current user session.
B. It contains the system privileges granted to other users by the current user session.
C. It contains the current object privileges available in the user session.
D. It contains the current system privileges available in the user session.
Correct Answer: D
Explanation
QUESTION 183
Which three statements indicate the end of a transaction? (Choose three.)
You want to update this table such that BOOK_ID is set to 'INVALID' for all rows where no MEMBER_ID
has been entered.
Which condition must be used in the WHERE clause to perform the required update?
A. MEMBER_ID = '';
B. MEMBER_ID = NULL;
C. MEMBER_ID IS NULL;
D. MEMBER_ID = "";
Correct Answer: C
Explanation
QUESTION 185
Evaluate the following SQL commands:
The command to create a table fails. Identify the reason for the SQL statement failure.
A. You cannot use ORD_NO and ITEM_NO columns as a composite primary key because ORD_NO is
also the FOREIGN KEY.
B. You cannot use the BETWEEN clause in the condition of a CHECK constraint.
C. You cannot use the NEXTVAL sequence value as a DEFAULT value for a column.
D. You cannot use SYSDATE in the condition of a CHECK constraint.
Correct Answer: D
Explanation
QUESTION 186
Evaluate the following query:
Correct Answer: C
Explanation
QUESTION 187
View the exhibit and examine the description for the SALES and CHANNELS tables.
You issued this SQL statement:
Correct Answer: D
Explanation
QUESTION 188
View the Exhibit and examine the structure of the CUSTOMERS table.
A. It returns an error because the BETWEEN operator cannot be used in the HAVING clause.
B. It returns an error because WHERE and HAVING clauses cannot be used in the same SELECT
statement.
C. It returns an error because WHERE and HAVING clauses cannot be used to apply conditions on the
same column.
D. It executes successfully.
Correct Answer: D
Explanation
QUESTION 189
View the Exhibit and examine the details of the ORDER_ITEMS table.
Statement 1:
Statement 2:
Which statements are true regarding the output of these SQL statements? (Choose all that apply.)
QUESTION 190
Which two statements are true regarding subqueries? (Choose two.)
Correct Answer: CE
Explanation
QUESTION 191
Examine the description of the EMP_DETAILS table given below:
Which two statements are true regarding SQL statements that can be executed on the EMP_DETAIL
TABLE?
Correct Answer: AC
Explanation
QUESTION 192
View the Exhibit and examine the structure of ORDER_ITEMS and ORDERS tables.
You need to remove from the ORDER_ITEMS table those rows that have an order status of 0 or 1 in the
ORDERS table.
A. DELETE
FROM order_items
WHERE order_id IN (SELECT order_id)
FROM orders
WHERE order_status IN (0,1));
B. DELETE
FROM (SELECT * FROM order_items I,orders o
WHERE i.order_id = o.order_id AND order_status IN (0,1));
C. DELETE FROM order_items i
WHERE order_id = (SELECT order_id FROM orders o
WHERE i.order_id = o.order_id AND order_status IN (0,1));
D. DELETE
FROM order_items
WHERE order_id IN (SELECT order_id
FROM orders
WHERE orders_status in (0,1));
Correct Answer: BD
Explanation
Explanation/Reference:
QUESTION 193
The PRODUCTS table has the following structure.
Correct Answer: A
Explanation
Explanation/Reference:
Using the NVL2 Function
The NVL2 function examines the first expression. If the first expression is not null, the NVL2 function
returns the second expression. If the first expression is null, the third expression is returned.
Syntax
NVL2(expr1, expr2, expr3)
In the syntax:
Expr1 is the source value or expression that may contain a null
Expr2 is the value that is returned if expr1 is not null
Expr3 is the value that is returned if expr1 is null
QUESTION 194
You executed the following CREATE TABLE statement that resulted in an error:
SQL> CREATE TABLE employees(emp_id NUMBER(10) PRIMARY KEY, ename VARCHAR2(20), email
NUMBER(3) UNIQUE, address VARCHAR2(500), phone VARCHAR2(20), resume LONG, hire_date
DATE, remarks LONG, dept_id NUMBER(3) CONSTRAINT emp_dept_id_fk REFERENCES departments
(dept_id), CONSTRAINT ename_nn NOY NULL(ename));
A. The NOT NULL constraint on the ENAME column must be defined as the column level
B. FOREIGN KEY defined on the DEPT_ID column must be at the table level only
C. Only one LONG column can be used per table
D. The FOREIGN KEY keyword is missing in the constraint definition
E. The PRIMARY KEY constraint in the EMP_ID column must have a name and must be defined at the
table level only
Correct Answer: AC
Explanation
QUESTION 195
View the Exhibit and examine the structure of the CUSTOMERS table.
You want to generate a report showing the last names and credit limits of all customers whose last names
start with A, B, or C, and credit limit is below 10,000.
Evaluate the following two queries:
Correct Answer: C
Explanation
QUESTION 196
Evaluate the following CREATE TABLE commands:
CREATE_TABLE orders
(ord_no NUMBER (2) CONSTRAINT ord_pk PRIMARY KEY,
ord_date DATE,
cust_id NUMBER (4));
Correct Answer: A
Explanation
QUESTION 197
View the Exhibit and examine the structure of the PRODUCT table.
A. display all products whose minimum list price is more than the average list price of products having the
status `orderable'
B. display the total number of products supplied by supplier 102 and have product status as `OBSOLETE'
C. display the number of products whose list prices are more than the average list price
D. display all suppliers whose list price is more than 1000
E. display the minimum list price for each product status
Correct Answer: AC
Explanation
QUESTION 198
Examine the structure of the EMPLOYEES table:
You want to display the name, joining date, and manager for all employees. Newly hired employees are yet
to be assigned a department or a manager. For them, `No Manager' should be displayed in the MANAGER
column.
Correct Answer: B
Explanation
QUESTION 199
View the Exhibit and examine the structure of ORDERS and CUSTOMERS tables.
There is only one customer with the cust_last_name column having value Roberts. Which INSERT
statement should be used to add a row into the ORDERS table for the customer whose
CUST_LAST_NAME is Roberts and CREDIT_LIMIT is 600?
Correct Answer: A
Explanation
QUESTION 200
View the Exhibit and examine the data in EMP and DEPT tables.
In the DEPT table, DEPTNO is the PRIMARY KEY.
In the EMP table, EMPNO is the PRIMARY KEY and DEPTNO is the FOREIGN KEY referencing the
DEPTNO column in the DEPT table.
What would be the outcome of the following statements executed in the given sequence?
A. Both the INSERT statements would fail because the constraints are automatically retrieved when the
table is flashed back.
B. Both the INSERT statements would succeed because none of the constraints on the table are
automatically retrieved when the table is flashed back.
C. Only the first INSERT statement would succeed because all constraints except the primary key
constraint are automatically retrieved after a table is flashed back.
D. Only the SECOND INSERT statement would succeed because all the constraints except referential
integrity constraints that reference other tables are retrieved automatically after the table is flashed
back.
Correct Answer: D
Explanation
QUESTION 201
Which three tasks can be performed by DDL statements?
QUESTION 202
View the Exhibit and examine the structure of the ORDER_ITEMS and ORDERS tables.
You are asked to retrieve the ORDER_ID, product_ID, and total price (UNIT_PRICE multiplied by
QUANTITY), where the total price is greater than 50,000.
Correct Answer: C
Explanation
QUESTION 203
Which two statements are true regarding operators used with subqueries (Choose two.)
A. The NOT IN operator is equivalent to IS NULL.
B. The <ANY operator means less than the maximum.
C. =ANY and =ALL operators have the same functionality.
D. The IN operator cannot be used in single-row subqueries.
E. The NOT operator can be used with IN, ANY and ALL operators.
Correct Answer: BE
Explanation
QUESTION 204
Examine the structure of the SHIPMENTS table:
You want to generate a report that displays the PO_ID and the penalty amount to be paid if the
SHIPMENT_DATE is later than one month from the PO_DATE. The penalty is $20 per day.
Correct Answer: C
Explanation
QUESTION 205
Examine the structure and data in the PRICE_LIST table:
You plan to give a discount of 25% on the product price and need to display the discount amount in the
same format as the PROD_PRICE.
Correct Answer: C
Explanation
QUESTION 206
View the Exhibit and examine the data in the PRODUCTS table.
Which statement would add a column called PRICE, which cannot contain NULL?
Correct Answer: C
Explanation
QUESTION 207
The customers table has the following structure:
1. Display the first name and tax amount of the customers. Tax is 5% of their credit limit.
2. Only those customers whose income level has a value should be considered.
3. Customers whose tax amount is null should not be considered.
Correct Answer: B
Explanation
QUESTION 208
View the Exhibit and examine the structure of the SALES table.
The following query is written to retrieve all those product IDs from the SALES table that have more than
55000 sold and have been ordered more than 10 items.
Correct Answer: C
Explanation
QUESTION 209
View the Exhibit and examine the description for the PRODUCTS and SALES table.
PROD_ID is a primary key in the PRODUCTS table and foreign key in the SALES table with ON DELETE
CASCADE option. The SALES table contains data for the last three years. You want to remove all the rows
from the PRODUCTS table for which no sale was done for the last three years.
A. DELETE
FROM products
WHERE prod_id = (SELECT prod_id
FROM sales
WHERE time_id - 3*365 = SYSDATE );
B. DELETE
FROM products
WHERE prod_id = (SELECT prod_id
FROM sales
WHERE SYSDATE >= time_id - 3*365 );
C. DELETE
FROM products
WHERE prod_id IN (SELECT prod_id
FROM sales
WHERE SYSDATE - 3*365 >= time_id);
D. DELETE
FROM products
WHERE prod_id IN (SELECT prod_id
FROM sales
WHERE time_id >= SYSDATE - 3*365 );
Correct Answer: C
Explanation
QUESTION 210
Examine the data in the CUST_NAME column of the CUSTOMERS table.
You want to extract only those customer names that have three names and display the * symbol in place of
the first name as follows:
Correct Answer: AB
Explanation
QUESTION 211
View the Exhibit and examine the structure of the BOOKS table.
A. Both ROLLBACK commands restore the 101 rows that were deleted.
B. Both ROLLBACK commands restore the 100 rows that were deleted.
C. The first rollback restores the 101 rows that were deleted and the second rollback causes the row was
inserted to be deleted and commits the changes.
D. The first rollback restores the 100 rows that were deleted and the second rollback commits only the
changes.
Correct Answer: C
Explanation
QUESTION 212
Which statement is true about the Oracle SQL, DELETE and TRUNCATE statements?
A. DELTE and TRUNCATE statements can have a rollback done to restore data into a table.
B. DELETE and TRUNCATE statements remove all indexes for the tables on which they are performed.
C. DELETE but not TRUNCATE statement can be used to remove data from selective columns and rows
of a table.
D. DELETE but not TRUNCATE statement can be used to selectively remove rows from a table.
Correct Answer: D
Explanation
QUESTION 213
View the Exhibit and examine the description of the EMPLOYEES table.
The query was written to retrieve the FIRST_NAME, EMPLOYEE_ID, and review date for employees. The
review date is the firsts Monday after the completion of six months of the hiring. The NLS_TERRITORY
parameter is set to AMERICA in the session.
QUESTION 214
View the Exhibit and examine the structure of the CUSTOMERS table.
CUSTOMER_VU is a view based on CUSTOMERS_BR1 table which has the same structure as
CUSTOMERS table.
CUSTOMERS need to be updated to reflect the latest information about the customers.
Correct Answer: A
Explanation
QUESTION 215
Evaluate the following SQL statement:
Which statement is true regarding the outcome of the above query?
Correct Answer: D
Explanation
QUESTION 216
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.
Correct Answer: CD
Explanation
QUESTION 217
Which two statements are true? (Choose two.)
Correct Answer: AD
Explanation
QUESTION 218
What is the primary difference between the relational database (RDB) and object-oriented database
(OODB) models?
A. OODB supports multiple objects in the same database, whereas RDB supports only tables.
B. RDB supports only E.F. Codd's rules, whereas OODB does not support them.
C. OODB incorporates methods with data structure definition, whereas RDB does not allow this.
D. RDB allows the definition of relationships between different tables, whereas OODB does not allow this.
Correct Answer: C
Explanation
QUESTION 219
Examine the command to create the BOOKS table.
Correct Answer: A
Explanation
QUESTION 220
You need to list the employees in DEPARTMENT_ID 20 days in a single row, ordered by HIRE_DATE.
A. SELECT LISTAGG(last_name)
WITHIN GROUP ORDER BY (hire_date) "Emp_list", MIN(hire_date) "Earliest"
FROM employees
WHERE department_id = 30;
B. SELECT LISTAGG(last_name, '; ')
WITHIN GROUP ORDER BY (hire_date) "Emp_list", MIN(hire_date) "Earliest"
FROM employees
WHERE department_id = 30;
C. SELECT LISTAGG(last_name, '; ') "Emp_list", MIN(hire_date) "Earliest"
FROM employees
WHERE department_id = 30;
WITHIN GROUP ORDER BY (hire_date);
D. SELECT LISTAGG(last_name, '; ') "Emp_list", MIN(hire_date) "Earliest"
FROM employees
WHERE department_id = 30;
ORDER BY (hire_date);
Correct Answer: B
Explanation
QUESTION 221
Examine the structure of the DEPARTMENTS table.
You execute the following command:
Correct Answer: BE
Explanation
QUESTION 222
View the exhibit and examine the description of SALES and PROMOTIONS tables.
You want to delete rows from the SALES table, where the PROMO_NAME column in the PROMOTIONS
table has either blowout sale or everyday low price as values.
A. DELETE
FROM sales
WHERE promo_id = (SELECT promo_id
FROM promo_name = `blowout sale')
AND promo_id = (SELECT promo_id
FROM promotions
WHERE promo_name = `everyday low price')
FROM promotions
WHERE promo_name = `everyday low price');
B. DELETE
FROM sales
WHERE promo_id = (SELECT promo_id
FROM promotions
WHERE promo_name = `blowout sale')
OR promo_id = (SELECT promo_id
FROM promotions
WHERE promo_name = `everyday low price')
C. DELETE
FROM sales
WHERE promo_id = (SELECT promo_id
FROM promotions
WHERE promo_name = `blowout sale')
OR promo_name = `everyday low price');
D. DELETE
FROM sales
WHERE promo_id IN (SELECT promo_id
FROM promotions
WHERE promo_name IN = `blowout sale',`everyday low price'));
QUESTION 223
You need to display the first names of all customers from the CUSTOMERS table that contain the
character `e' and have the character `a' in the second last position.
A. SELECT cust_first_name
FROM customers
WHERE INSTR(cust_first_name, `e')<>0 AND
SUBSTR(cust_first_name, -2, 1)='a';
B. SELECT cust_first_name
FROM customers
WHERE INSTR(cust_first_name, `e')<>'' AND
SUBSTR(cust_first_name, -2, 1)='a';
C. SELECT cust_first_name
FROM customers
WHERE INSTR(cust_first_name, `e')IS NOT NULL AND
SUBSTR(cust_first_name, 1, -2)='a';
D. SELECT cust_first_name
FROM customers
WHERE INSTR(cust_first_name, `e')<>0 AND
SUBSTR(cust_first_name, LENGTH(cust_first_name), -2)='a';
Correct Answer: A
Explanation
QUESTION 224
Examine the data in the ORD_ITEMS table:
Evaluate this query:
A. It returns an error because the HAVING clause should be specified after the GROUP BY clause.
B. It returns an error because all the aggregate functions used in the HAVING clause must be specified in
the SELECT list.
C. It displays the item nos with their average quantity where the average quantity is more than double the
minimum quantity of that item in the table.
D. It displays the item nos with their average quantity where the average quantity is more than double the
overall minimum quantity of all the items in the table.
Correct Answer: C
Explanation
QUESTION 225
Which two statements are true regarding the DELETE and TRUNCATE commands?
A. DELETE can be used to remove rows from only one table in one statement.
B. DELETE can be used to remove rows from multiple tables in one statement.
C. DELETE can be used to remove rows only for tables that are parents for a child table that has a
referential integrity constraint referring to the parent.
D. DELETE can be used to remove data from specific columns as well as complete rows.
E. DELETE and TRUNCATE can be used for tables that are parents for a child table that has a referential
integrity constraint having an ON DELETE rule.
Correct Answer: AE
Explanation
QUESTION 226
The SQL statements executed in a user session are as follows:
Which two statements describe the consequences of issuing the ROLLBACK TO SAVE POINT a
command in the session? (Choose two.)
Correct Answer: AB
Explanation
QUESTION 227
View the Exhibit and examine the structure of the PRODUCT_INFORMATION table.
You want to see the product names and the date of expiration of warranty for all the products, if the
product is purchased today. The products that have no warranty should be displayed at the top and the
products with maximum warranty period should be displayed at the bottom.
QUESTION 228
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.
A.
B.
C.
D.
E.
Correct Answer: A
Explanation
Explanation/Reference:
QUESTION 229
Examine the description of the PRODUCT_DETAILS table:
Which two statements are true?
Correct Answer: CF
Explanation
QUESTION 230
Which two are true about the data dictionary?
A. The SYS user owns all base tables and user-accessible views in the data dictionary.
B. All users have permissions to access all information in the data dictionary by default.
C. The data dictionary is constantly updated to reflect changes to database objects, permissions, and
data.
D. All user actions are recorded in the data dictionary.
E. Base tables in the data dictionary have the prefix DBA_.
Correct Answer: AE
Explanation
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B28359_01/server.111/b28318/datadict.htm#CNCPT1215
QUESTION 231
Which three statements are true about views in an Oracle Database?
A. Views can join tables only if they belong to the same schema.
B. A view can be created that refers to a non-existent table in its defining query.
C. Views have no object number.
D. Views have no segment.
E. Rows inserted into a table using a view are retained in the table if the view is dropped.
F. A SELECT statement cannot contain a WHERE clause when querying a view containing a WHERE
clause in its defining query.
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B28359_01/server.111/b28286/
statements_8004.htm#SQLRF01504
https://community.oracle.com/thread/2178948
QUESTION 232
Examine the description of the CUSTOMERS table:
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.
A.
B.
C.
D.
E.
Correct Answer: E
Explanation
Explanation/Reference:
QUESTION 233
Examine the data in the CUST_NAME column of the CUSTOMERS table:
You want to display the CUST_NAME values where the last name starts with Mc or MC.
Correct Answer: A
Explanation
QUESTION 234
Which three are true about the MERGE statement?
A. It can combine rows from multiple tables conditionally to insert into a single table.
B. It can merge rows only from tables.
C. It can use subqueries to produce source rows.
D. It can update, insert, or delete rows conditionally in multiple tables.
E. It can update the same row of the target table multiple times.
F. It can use views to produce source rows.
Explanation/Reference:
Reference: https://www.oracletutorial.com/oracle-basics/oracle-merge/
QUESTION 235
Which three actions can you perform only with system privileges?
QUESTION 236
Which three are true about multitable INSERT statements?
Explanation/Reference:
Reference: https://www.akadia.com/services/ora_multitable_insert.html
QUESTION 237
Examine the description of the SALES table:
The SALES table has 55,000 rows.
A. SALES1 has NOT NULL constraints on any selected columns which had those constraints in the
SALES table.
B. SALES1 is created with 55,000 rows.
C. SALES1 has PRIMARY KEY and UNIQUE constraints on any selected columns which had those
constraints in the SALES table.
D. SALES1 is created with no rows.
E. SALES1 is created with 1 row.
Correct Answer: AD
Explanation
Explanation/Reference:
Reference: https://www.oracle.com/a/ocom/docs/dc/ww-ou-5297-database2019-studyguide-5.pdf
QUESTION 238
Which three statements are true about GLOBAL TEMPORARY TABLES?
Explanation/Reference:
Reference: https://books.google.com.pk/books?id=oP88fSdbQJIC&pg=PA11&lpg=PA11&dq=oracle
+database+GLOBAL+TEMPORARY+TABLES+Data+Manipulation+Language+(DML)+on+GLOBAL
+TEMPORARY+TABLES+generates+no
+REDO&source=bl&ots=F7EL8Y0ST9&sig=ACfU3U1KuLlqyyJFxqAG1LRT4OxprsVZdg&hl=en&sa=X&ve
d=2ahUKEwi0xdPU94vlAhWp34UKHUYpBtAQ6AEwAHoECAkQAQ#v=onepage&q=oracle%20database
%20GLOBAL% 20TEMPORARY%20TABLES%20Data%20Manipulation%20Language%20(DML)%20on
%20GLOBAL%20TEMPORARY%20TABLES%20generates%20no%20REDO&f=false
QUESTION 239
Which two statements are true about the results of using the INTERSECT operator in compound queries?
Correct Answer: AE
Explanation
QUESTION 240
Examine the description of the CUSTOMERS table:
You must determine if any customers' details have been entered more than once using a different
CUSTNO, by listing all duplicate names.
Which two methods can you use to get the required result?
Correct Answer: BE
Explanation
QUESTION 241
Which CREATE TABLE statement is valid?
A.
B.
C.
D.
Correct Answer: D
Explanation
Explanation/Reference:
QUESTION 242
The SALES table has columns PROD_ID and QUANTITY_SOLD of data type NUMBER.
A. SELECT prod_id FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id HAVING COUNT(*)
>10;
B. SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*) > 10 GROUP BY
prod_id HAVING COUNT(*) >10;
C. SELECT COUNT (prod_id) FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id;
D. SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*) > 10 GROUP BY
COUNT(*) >10;
E. SELECT COUNT(prod_id) FROM sales GROUP BY prod_id WHERE quantity_sold > 55000;
Correct Answer: AC
Explanation
QUESTION 243
Examine these statements executed in a single Oracle session:
Which three statements are true?
QUESTION 244
Which two are true about dropping columns from a table?
Correct Answer: DF
Explanation
Explanation/Reference:
Reference: https://oracle-base.com/articles/8i/dropping-columns
QUESTION 245
You issued this command:
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B28359_01/server.111/b28310/tables010.htm#ADMIN01505
QUESTION 246
The EMPLOYEES table contains columns EMP_ID of data type NUMBER and HIRE_DATE of data type
DATE.
You want to display the date of the first Monday after the completion of six month since hiring.
The NLS_TERRITORY parameter is set to AMERICA in the session and, therefore, Sunday is the first day
of the week.
Correct Answer: B
Explanation
Explanation/Reference:
Reference: http://www.dba-oracle.com/t_add_months.htm
QUESTION 247
Which two statements are true about date/time functions in a session where NLS_DATE_FORMAT is set
to DD-MON-YYYY HH24:MI:SS?
Correct Answer: EF
Explanation
QUESTION 248
Which three statements are true about the Oracle join and ANSI join syntax?
Explanation/Reference:
Reference: http://www.dba-oracle.com/oracle_tips_iso99_joins.htm
QUESTION 249
View the Exhibit and examine the description of the tables.
You execute this SQL statement:
Which three statements are true?
A. The statement will execute successfully and a new row will be inserted into the SALES table.
B. A product can have a different unit price at different times.
C. The statement will fail because a subquery may not be contained in a VALUES clause.
D. The statement will fail if a row already exists in the SALES table for product 23.
E. A customer can exist in many countries.
F. The SALES table has five foreign keys.
QUESTION 250
Examine the description of the PRODUCT_STATUS table:
The STATUS column contains the values `IN STOCK' or `OUT OF STOCK' for each row.
A.
B.
C.
D.
E.
F.
Correct Answer: BE
Explanation
Explanation/Reference:
QUESTION 251
Examine the description of the CUSTOMERS table:
You want to display details of all customers who reside in cities starting with the letter D followed by at
least two characters.
Correct Answer: C
Explanation
QUESTION 252
Examine this SQL statement:
Correct Answer: BD
Explanation
QUESTION 253
What is true about non-equijoin statement performance?
A. The BETWEEN condition always performs less well than using the >= and <= conditions.
B. The join syntax used makes no difference to performance.
C. Table aliases can improve performance.
D. The BETWEEN condition always performs better than using the >= and <= conditions.
E. The Oracle join syntax performs better than the SQL:1999 compliant ANSI join syntax.
Correct Answer: C
Explanation
Explanation/Reference:
Reference: https://www.academia.edu/17342225/SQL_notes
QUESTION 254
Which three statements are true about multiple row subqueries?
Explanation/Reference:
Reference: https://www.w3resource.com/sql/subqueries/multiplee-row-column-subqueries.php
QUESTION 255
Examine this description of the PRODUCTS table:
A.
B.
C.
D.
Correct Answer: B
Explanation
Explanation/Reference:
QUESTION 256
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 CREATE INDEX statement after a CREATE TABLE statement completed successfully
in the same session
C. when issuing a CREATE TABLE statement after a SELECT statement was issued in the same session
D. when issuing the first Data Manipulation Language (DML) statement after a COMMIT or ROLLBACK
statement was issued in the same session
E. when issuing a DML statement after a DML statement failed in the same session
F. when issuing a SELECT FOR UPDATE statement after a CREATE TABLE AS SELECT statement was
issued in the same session
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14220/transact.htm
QUESTION 257
View the Exhibit and examine the structure of the PRODUCT table.
Correct Answer: AC
Explanation
QUESTION 258
Which two statements are true regarding the COUNT function? (Choose two.)
A. A SELECT statement using the COUNT function with a DISTINCT keyword cannot have a WHERE
clause.
B. COUNT(DISTINCT inv_amt) returns the number of rows excluding rows containing duplicates and
NULLs in the INV_AMT column.
C. COUNT(inv_amt) returns the number of rows in a table including rows with NULL in the INV_AMT
column.
D. COUNT(*) returns the number of rows including duplicate rows and rows containing NULL value in any
column.
E. It can only be used for NUMBER data types.
Correct Answer: BD
Explanation
QUESTION 259
Examine this statement:
A. 0 rows
B. an error
C. 1 row
D. 2 rows
Correct Answer: D
Explanation
QUESTION 260
Examine the description of the PRODUCT_INFORMATION table:
Which query retrieves the number of products with a null list price?
Correct Answer: D
Explanation
Explanation/Reference:
Reference: https://www.oracletutorial.com/oracle-aggregate-functions/oracle-avg/
QUESTION 261
Which statement is true about aggregate functions?
Correct Answer: B
Explanation
Explanation/Reference:
Reference: https://docs.oracle.com/database/121/SQLRF/functions003.htm
QUESTION 262
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. A TIMESTAMP data type column contains information about year, month, and day.
C. The CURRENT_TIMESTAMP function returns data without time zone information.
D. A TIMESTAMP WITH LOCAL TIMEZONE data type column is stored in the database using the time
zone of the session that inserted the row.
E. The SESSIONTIMEZONE function can return an offset from Universal Coordinated Time (UTC).
Explanation/Reference:
Reference: https://docs.oracle.com/database/121/NLSPG/ch4datetime.htm
QUESTION 263
MANAGER is an existing role with no privileges or roles.
EMP is an existing role containing the CREATE TABLE privilege.
EMPLOYEES is an existing table in the HR schema.
Correct Answer: AC
Explanation
Explanation/Reference:
QUESTION 264
Which statement is true about the INTERSECT operator used in compound queries?
Correct Answer: D
Explanation
QUESTION 265
Which statement is true regarding the default behavior of the ORDER BY clause?
Correct Answer: A
Explanation
Explanation/Reference:
The ORDER BY clause performs case sensitive sorting with character values.
QUESTION 266
You execute this query:
A. It returns the date for the first Monday of the next month.
B. It returns the date for the last Monday of the current month.
C. It executes successfully but does not return any result.
D. It generates an error.
Correct Answer: A
Explanation
QUESTION 267
Which two are true about granting privileges on objects?
A. An object privilege can be granted to other users only by the owner of that object.
B. An object privilege can be granted to a role only by the owner of that object.
C. A table owner must grant the REFERENCES privilege to allow other users to create FOREIGN KEY
constraints using that table.
D. The owner of an object acquires all object privileges on that object by default.
E. The WITH GRANT OPTION clause can be used only by DBA users.
Correct Answer: CD
Explanation
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/network.102/b14266/authoriz.htm#i1008214
QUESTION 268
Which statement is true about TRUNCATE and DELETE?
A. You can never TRUNCATE a table if foreign key constraints will be violated.
B. For large tables TRUNCATE is faster than DELETE.
C. For tables with multiple indexes and triggers DELETE is faster than TRUNCATE.
D. You can never DELETE rows from a table if foreign key constraints will be violated.
Correct Answer: B
Explanation
Explanation/Reference:
Reference: https://www.sqlservercentral.com/articles/difference-between-truncate-and-delete
QUESTION 269
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?
Correct Answer: AD
Explanation
QUESTION 270
Which two statements are true about Oracle synonyms?
Correct Answer: BD
Explanation
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_7001.htm
QUESTION 271
Examine the description of the SALES1 table:
You want to display the rows from the SALES1 table which are not present in the SALES2 table.
A. SUBTRACT
B. INTERSECT
C. UNION ALL
D. UNION
E. MINUS
Correct Answer: E
Explanation
QUESTION 272
Examine this query:
SELECT 2 FROM dual d1 CROSS JOIN dual d2 CROSS JOIN dual d3;
A. 8 rows
B. 1 row
C. 6 rows
D. 3 rows
E. 0 rows
F. an error
Correct Answer: B
Explanation
QUESTION 273
The PRODUCT_INFORMATION table has a UNIT_PRICE column of data type NUMBER (8, 2).
Correct Answer: CE
Explanation
QUESTION 274
Examine the description of the BOOKS_TRANSACTIONS table:
Correct Answer: BC
Explanation
QUESTION 275
Which two statements are true about a self join?
Correct Answer: CE
Explanation
Explanation/Reference:
Reference: https://www.oracletutorial.com/oracle-basics/oracle-self-join/
QUESTION 276
You create a table by using this command:
Correct Answer: CD
Explanation
QUESTION 277
Examine these SQL statements which execute successfully:
Correct Answer: BD
Explanation
QUESTION 278
Which two statements are true about conditional INSERT ALL?
A. Each WHEN condition is tested for each row returned by the subquery.
B. The total number of rows inserted is always equal to the number of rows returned by the subquery.
C. A single WHEN condition can be used for multiple INTO clauses.
D. It cannot have an ELSE clause.
E. Each row returned by the subquery can be inserted into only a single target table.
Correct Answer: CD
Explanation
QUESTION 279
Examine the description of the EMPLOYEES table:
Correct Answer: D
Explanation
QUESTION 280
Which three statements are true about performing Data Manipulation Language (DML) operations on a
view in an Oracle Database?
A. Views cannot be used to add or modify rows in an underlying table if the defining query of the view
contains the DISTINCT keyword.
B. 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.
C. 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.
D. The WITH CHECK clause has no effect when deleting rows from the underlying table through the view.
E. Insert statements can always be done on a table through a view.
F. Views cannot be used to add or modify rows in an underlying table if the defining query of the view
contains aggregating functions.
QUESTION 281
Which two statements are true about the ORDER BY clause when used with a SQL statement containing a
SET operator such as UNION?
A. Each SELECT statement in the compound query must have its own ORDER BY clause.
B. Each SELECT statement in the compound query can have its own ORDER BY clause.
C. Column positions must be used in the ORDER BY clause.
D. The first column in the first SELECT of the compound query with the UNION operator is used by default
to sort output in the absence of an ORDER BY clause.
E. Only column names from the first SELECT statement in the compound query are recognized.
Correct Answer: BE
Explanation
QUESTION 282
Which three statements are true about Data Manipulation Language (DML)?
A. UPDATE statements can have different subqueries to specify the values for each updated column.
B. INSERT statements can insert NULLS explicitly into a column.
C. DELETE statements can remove multiple rows based on multiple conditions.
D. DML statements require a primary key be defined on a table.
E. INSERT INTO...SELECT...FROM statements automatically commit.
QUESTION 283
Examine the description of the BOOKS table:
A. The first ROLLBACK command restores the 101 rows that were deleted, leaving the inserted row still to
be committed.
B. The second ROLLBACK command replays the delete.
C. The first ROLLBACK command restores the 101 rows that were deleted and commits the inserted row.
D. The second ROLLBACK command undoes the insert.
E. The second ROLLBACK command does nothing.
Correct Answer: C
Explanation
QUESTION 284
Which three are true about privileges and roles?
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/network.102/b14266/authoriz.htm#i1010570
QUESTION 285
Examine this query:
Which two methods should you use to prevent prompting for a hire date value when this query is
executed?
Correct Answer: DE
Explanation
QUESTION 286
Which two statements are true about a full outer join?
Correct Answer: AD
Explanation
Explanation/Reference:
Reference: https://www.w3resource.com/oracle/joins/oracle-full-outer-join.php
QUESTION 287
Which three statements are true about defining relations between tables in a relational database?
Correct Answer: AD
Explanation
QUESTION 288
You execute this command:
Correct Answer: DE
Explanation
Explanation/Reference:
Reference: https://docs.oracle.com/html/E25494_01/general003.htm
QUESTION 289
Which two are true about a SQL statement using SET operators such as UNION?
A. The number, but not names, of columns must be identical for all SELECT statements in the query.
B. The data type of each column returned by the second query must be implicitly convertible to the data
type of the corresponding column returned by the first query.
C. The data type group of each column returned by the second query must match the data type group of
the corresponding column returned by the first query.
D. The names and number of columns must be identical for all SELECT statements in the query.
E. The data type of each column returned by the second query must exactly match the data type of the
corresponding column returned by the first query.
Correct Answer: CE
Explanation
QUESTION 290
Which three statements are true about Structured Query Language (SQL)?
Explanation/Reference:
Reference: https://docs.microsoft.com/en-us/sql/relational-databases/hierarchical-data-sql-server?
view=sql-server-2017
QUESTION 291
Evaluate these commands which execute successfully:
Which two statements are true about the ORD_ITEMS table and the ORD_SEQ sequence?
A. Sequence ORD_SEQ cycles back to 1 after every 5000 numbers and can cycle 20 times.
B. Any user inserting rows into table ORD_ITEMS must have been granted access to sequence
ORD_SEQ.
C. Column ORD_NO gets the next number from sequence ORD_SEQ whenever a row is inserted into
ORD_ITEMS and no explicit value is given for ORD_NO.
D. If sequence ORD_SEQ is dropped then the default value for column ORD_NO will be NULL for rows
inserted into ORD_ITEMS.
E. Sequence ORD_SEQ is guaranteed not to generate duplicate numbers.
Correct Answer: BE
Explanation
QUESTION 292
Which two statements are true about INTERVAL data types?
A. The YEAR field in an INTERVAL YEAR TO MONTH column must be a positive value.
B. INTERVAL DAY TO SECOND columns support fractions of seconds.
C. INTERVAL YEAR TO MONTH columns only support monthly intervals within a single year.
D. INTERVAL YEAR TO MONTH columns support yearly intervals.
E. INTERVAL YEAR TO MONTH columns only support monthly intervals within a range of years.
F. The value in an INTERVAL DAY TO SECOND column can be copied into an INTERVAL YEAR TO
MONTH column.
Correct Answer: BE
Explanation
Explanation/Reference:
Reference: https://www.oracletutorial.com/oracle-basics/oracle-interval/
QUESTION 293
Which two statements are true about the DUAL table?
A. It can display multiple rows but only a single column.
B. It can be accessed by any user who has the SELECT privilege in any schema.
C. It can display multiple rows and columns.
D. It consists of a single row and single column of VARCHAR2 data type.
E. It can be used to display only constants or pseudo columns.
F. It can be accessed only by the SYS user.
Correct Answer: BD
Explanation
QUESTION 294
The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type NUMBER.
Correct Answer: CE
Explanation
QUESTION 295
Which two are true about the WITH GRANT OPTION clause?
A. The grantee must have the GRANT ANY OBJECT PRIVILEGE system privilege to use this option.
B. It can be used when granting privileges to roles.
C. It cannot be used to pass on privileges to PUBLIC by the grantee.
D. It can be used for system and object privileges.
E. It can be used to pass on privileges to other users by the grantee.
F. The grantee can grant the object privilege to any user in the database, with or without including this
option.
Correct Answer: DE
Explanation
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9013.htm
QUESTION 296
Examine the description of the EMPLOYEES table:
Which query requires explicit data type conversion?
Correct Answer: D
Explanation
QUESTION 297
Examine this partial command:
Which two clauses are required for this command to execute successfully?
Correct Answer: AB
Explanation
QUESTION 298
Which three statements are true about GLOBAL TEMPORARY TABLES?
A. GLOBAL TEMPORARY TABLE rows inserted by a session are available to any other session whose
user has been granted select on the table.
B. GLOBAL TEMPORARY TABLE space allocation occurs at session start.
C. A DELETE command on a GLOBAL TEMPORARY TABLE cannot be rolled back.
D. A GLOBAL TEMPORARY TABLE's definition is available to multiple sessions.
E. Any GLOBAL TEMPORARY TABLE rows existing at session termination will be deleted.
F. A TRUNCATE command issued in a session causes all rows in a GLOBAL TEMPORARY TABLE for
the issuing session to be deleted.
QUESTION 299
Examine the description of the TRANSACTIONS table:
Which two SQL statements execute successfully?
Correct Answer: CD
Explanation
QUESTION 300
Which three statements are true about indexes and their administration in an Oracle database?
QUESTION 301
Examine this description of the PRODUCTS table:
Rows exist in this table with data in all the columns. You put the PRODUCTS table in read-only mode.
QUESTION 302
Which two statements are true about transactions in the Oracle Database server?
A. If a session has an uncommitted transaction, then a DDL statement issues a COMMIT before starting a
new transaction.
B. An uncommitted transaction commits automatically if the user exists SQL*Plus.
C. Data Manipulation Language (DML) statements always start a new transaction.
D. A user can always see uncommitted updates made by the same user in a different session.
E. A Data Definition Language (DDL) statement does a COMMIT automatically only for the data dictionary
updates caused by the DDL.
F. A session can always see uncommitted updates made by itself.
Correct Answer: CF
Explanation
QUESTION 303
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?
A.
B.
C.
D.
E.
Correct Answer: D
Explanation
Explanation/Reference:
Exam B
QUESTION 1
Examine the structure of the two tables.
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Correct Answer: CD
Explanation
Explanation/Reference:
QUESTION 2
Table EMPLOYEES contains columns including EMPLOYEE_ID, JOB_ID and SALARY.
A. Employees 100 and 200 will have the same JOB_ID as before the update command
B. Employees 100 will have JOB_ID set to the same value as the JOB_ID of employee 200
C. Employees 100 and 200 will have the same SALARY as before the update command
D. Employee 200 will have SALARY set to the same value as the SALARY of employee 100
E. Employee 100 will have SALARY set to the same value as the SALARY of employee 200
F. Employee 200 will have JOB_ID set to the same value as the JOB_ID of employee 100
Correct Answer: BE
Explanation
QUESTION 3
Which two statements are true regarding the UNION and UNION ALL operators? (Choose two.)
Correct Answer: CE
Explanation
QUESTION 4
Which three actions can you perform on an existing table containing data? (Choose three.)
Correct Answer: BD
Explanation
Explanation/Reference:
Reference: https://docs.oracle.com/javadb/10.8.3.0/ref/rrefsqlj24513.html
QUESTION 5
Which two statements are true about single-row functions? (Choose two.)
Correct Answer: CE
Explanation
Explanation/Reference:
Reference: https://www.folkstalk.com/2012/01/oracle-single-row-functions-examples.html
QUESTION 6
Which three statements are true about sequences in a single instance Oracle database? (Choose three.)
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_6015.htm
QUESTION 7
Which two statements are true about the SET VERIFY ON command? (Choose two.)
Correct Answer: CE
Explanation
Explanation/Reference:
Reference: https://blogs.oracle.com/opal/sqlplus-101-substitution-variables#4_1_8
QUESTION 8
Which two statements are true about the rules of precedence for operators? (Choose two.)
A. The concatenation operator | | is always evaluated before addition and subtraction in an expression
B. Multiple parentheses can be used to override the default precedence of operators in an expression
C. Arithmetic operators with equal precedence area evaluated from left to right within an expression
D. NULLS influence the precedence of operators in an expression
E. The + binary operator has the highest precedence in an expression in a SQL statement
Correct Answer: BE
Explanation
Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14200/operators001.htm
QUESTION 9
Examine this statement:
A. 1 row
B. an error
C. 0 rows
D. 2 rows
Correct Answer: A
Explanation
QUESTION 10
Which four statements are true regarding primary and foreign key constraints and the effect they can have
on table data? (Choose four.)
A. 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
B. Only the primary key can be defined at the column and table level
C. The foreign key columns and parent table primary key columns must have the same names
D. A table can have only one primary key and one foreign key
E. A table can have only one primary key but multiple foreign keys
F. Primary key and foreign key constraints can be defined at both the column and table level
G. 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
QUESTION 11
Which three are true about system and object privileges? (Choose three.)
A. WITH GRANT OPTION can be used when granting an object privilege to both users and roles
B. Adding a primary key constraint to an existing table in another schema requires a system privilege
C. Adding a foreign key constraint pointing to a table in another schema requires the REFERENCES
object privilege
D. Revoking a system privilege that was granted with WITH ADMIN OPTION has a cascading effect
E. Revoking an object privilege that was granted with the WITH GRANT OPTION clause has a cascading
effect.
F. WITH GRANT OPTION cannot be used when granting an object privilege to PUBLIC
Explanation/Reference:
Reference https://docs.oracle.com/cd/B28359_01/network.111/b28531/authorization.htm#DBSEG004
QUESTION 12
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 PROD_ID in a
promotion time interval.
Exhibit 1.
Exhibit 2.
A. It gives an error because the GROUP BY clause is not valid
B. It executes successfully but does not give the required result
C. It executes successfully and gives the required result
D. It gives an error because the ALL keyword is not valid
Correct Answer: C
Explanation
QUESTION 13
Which two statements are true about selecting related rows from two tables based on an Entity
Relationship Diagram (ERD)? (Choose two.)
A. Implementing a relationship between two tables might require joining additional tables
B. Relating data from a table with data from the same table is implemented with a self join
C. Rows from unrelated tables cannot be joined
D. Every relationship between the two tables must be implemented in a join condition
E. An inner join relates rows within the same table
Correct Answer: AE
Explanation
QUESTION 14
Which two statements are true about substitution variables? (Choose two.)
Correct Answer: BC
Explanation
Explanation/Reference:
Reference: https://blogs.oracle.com/opal/sqlplus-101-substitution-variables
QUESTION 15
Which three statements are true about inner and outer joins? (Choose three.)
Explanation/Reference:
Reference: https://www.studytonight.com/dbms/joining-in-sql.php
QUESTION 16
Examine the description of the PRODUCTS table:
QUESTION 17
Which three statements are true about the DESCRIBE command? (Choose three.)
QUESTION 18
The CUSTOMERS table has a CUST_LAST_NAME column of data type VARCHAR2.
The table has two rows whose CUST_LAST_NAME values are Anderson and Ausson.
Which query produces output for CUST_LAST_NAME containing Oder for the first row and Aus for the
second?
A. SELECT REPLACE (TRIM(TRAILING `son' FROM cust_last_name), `An', `o') FROM customers;
B. SELECT INITCAP (REPLACE(TRIM(`son' FROM cust_last_name), `An', `o')) FROM customers;
C. SELECT REPLACE (SUBSTR(cust_last_name, -3), `An', `o') FROM customers;
D. SELECT REPLACE (REPLACE(cust_last_name, `son', `'), `An', `o') FROM customers;
Correct Answer: D
Explanation
QUESTION 19
Examine this SQL statement:
Correct Answer: D
Explanation
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.)
QUESTION 21
An Oracle database server session has an uncommitted transaction in progress which updated 5000 rows
in a table.
In which three situations does the transactions complete thereby committing the updates? (Choose three.)
A. when a DBA issues a successful SHUTDOWN TRANSACTIONAL statement and the user then issues
a COMMIT
B. when a CREATE INDEX statement is executed successfully in the same session
C. when a COMMIT statement is issued by the same user from another session in the same database
instance
D. when the session logs out successfully
E. when a DBA issues a successful SHUTDOWN IMMEDIATE statement and the user then issues a
COMMIT
F. when a CREATE TABLE AS SELECT statement is executed unsuccessfully in the same session
QUESTION 22
The INVOICE table has a QTY_SOLD column of data type NUMBER and an INVOICE_DATE column of
data type DATE.
Which two are true about data type conversions involving these columns in query expressions? (Choose
two.)
Correct Answer: CD
Explanation
QUESTION 23
The ORDERS table has a primary key constraint 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 CASCADE.
There are rows in the ORDERS table with an ORDER_TOTAL of less than 1000.
Correct Answer: AC
Explanation
QUESTION 24
Examine this query:
A. 16
B. 200
C. 100
D. 160
E. 150
Correct Answer: E
Explanation
Explanation/Reference:
Reference https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions200.htm
QUESTION 25
Which three statements are true regarding indexes? (Choose three.)
A. A SELECT statement can access one or more indices without accessing any tables
B. An update to a table can result in no updates to any of the table's indexes
C. A table belonging to one user can have an index that belongs to a different user
D. A UNIQUE index can be altered to be non-unique
E. An update to a table can result in updates to any or all of the table's indexes
F. When a table is dropped and is moved to the RECYCLE BIN, all indexes built on that table are
permanently dropped
QUESTION 26
Which three are true about the CREATE TABLE command? (Choose three.)
A. It can include the CREATE..INDEX statement for creating an index to enforce the primary key
constraint
B. It implicitly executes a commit
C. A user must have the CREATE ANY TABLE privilege to create tables
D. It implicitly rolls back any pending transactions
E. The owner of the table should have space quota available on the tablespace where the table is defined
F. The owner of the table must have the UNLIMITED TABLESPACE system privilege
Explanation/Reference:
Reference: https://docs.oracle.com/html/E25494_01/tables003.htm
QUESTION 27
You need to calculate the number of days from 1st January 2019 until today.
Correct Answer: A
Explanation
Explanation/Reference:
QUESTION 28
Which three actions can you perform by using the ORACLE_DATAPUMP access driver? (Choose three.)
A. Read data from an external table and load it into a table in the database
B. Create a directory object for an external table
C. Execute DML statements on an external table
D. Query data from an external table
E. Read data from a table in the database and insert it into an external table
F. Create a directory object for a flat file
QUESTION 29
Which three statements are true about single-row functions? (Choose three.)
Correct Answer: BD
Explanation
Explanation/Reference:
Reference: https://www.folkstalk.com/2012/01/oracle-single-row-functions-examples.html
QUESTION 30
Which two statements are true regarding a SAVEPOINT? (Choose two.)
Correct Answer: AE
Explanation
QUESTION 31
Which three privileges can be restricted to a subset of columns in a table? (Choose three.)
A. ALTER
B. DELETE
C. UPDATE
D. SELECT
E. INDEX
F. REFERENCES
G. INSERT
and so on, you can find all kinds of exam questions, study guides, practice tests here.
Our aim is to be your assistance on your way to be successful in your IT certifications.
We provide our customers with the 100% Pass Guaranteed or Full Refund.
We spare no efforts to help you to pass any IT Certification exams at the first try.
Do not hesitate to contact us if you need any help on the products, payments or
questions about IT exams.
We will get in touch with you in 24 hours. You satisfactory is the recognition for us.
You could rely upon us anytime you need help. We are at your service.
Any charges made through this site will appear as Global Simulators Limited.
All trademarks are the property of their respective owners.