最新的Oracle Database SQL Expert - 1Z1-047免費考試真題

問題1
Which two statements are true regarding the EXISTS operator used in the correlated subqueries? (Choose two.)

正確答案: A,C
問題2
Evaluate the following CREATE TABLE command:
CREATE TABLE order_item (order_id NUMBER(3),
Item_id NUMBER(2),
qty NUMBER(4),
CONSTRAINT ord_itm_id_pk
PRIMARY KEY (order_id jtem_id)
USING INDEX
(CREATE INDEX ord_itm_idx
ON order_item(order_id item_id)));
Which statement is true regarding the above SOL statement?

正確答案: D
問題3
Evaluate the following command:
CREATE TABLE employees
(employee_id NUMBER(2) PRIMARY KEY,
last_name VARCHAR2(25) NOT NULL,
department_id NUMBER(2), job_id VARCHAR2(8),
salary NUMBER(10,2));
You issue the following command to create a view that displays the IDs and last names of the
sales staff in the organization:
CREATE OR REPLACE VIEW sales_staff_vu AS
SELECT employee_id, last_name job_id
FROM employees
WHERE job_id LIKE 'SA_%' WITH CHECK OPTION;
Which statements are true regarding the above view? (Choose all that apply.)

正確答案: A,B
問題4
View the Exhibit and examine the structure of the EMPLOYEES table.
You want to know the FIRST_NAME and SALARY for all employees who have the same manager as that of the employee with the first name 'Neena' and have salary equal to or greater than that of'Neena'.
Which SQL statement would give you the desired result?

正確答案: B
問題5
Which statements are correct regarding indexes? (Choose all that apply.)

正確答案: A,C,D
問題6
Which statement is true regarding synonyms?

正確答案: A
問題7
View the Exhibit and examine the description of the ORDERS table.
The orders in the ORDERS table are placed through sales representatives only. You are given the task to get the SALES_REP_ID from the ORDERS table of those sales representatives who have successfully referred more than 10 customers. Which statement would achieve this purpose?

正確答案: B
問題8
Which two statements are true about the GROUPING function? (Choose two.)

正確答案: A,C
問題9
Which statement is true regarding external tables?

正確答案: C
問題10
View the Exhibit and examine the details of the EMPLOYEES table.
Evaluate the following SQL statement:
SELECT phone_number,
REGEXP_REPLACE(phone_number,'([[: digit: ]]{3})\.([[: digit: ]]{3})\.([[: digit: ]]{4})', ,(\1)\2-\3')
"PHONE NUMBER"
FROM employees;
The query was written to format the PHONE_NUMBER for the employees. Which option would
be the correct format in the output?

正確答案: C
問題11
Which two statements are true about sequences created in a single instance database? (Choose two.)

正確答案: A,E
問題12
View the Exhibit and examine the description of the EMPLOYEES table. Evaluate the following SQL statement: SELECTfirst_name, employee_id, NEXr_DAY(ADD_MONTHS(hire_date, 6), 1) "Review" FROM
employees;
The query was written to retrieve the FIRST_NAME, EMPLOYEE_ID, and review date for employees. The review date is the first Monday after the completion of six months of the hiring. The
NLS_TERRITORY parameter is set to AMERICA in the session. Which statement is true regarding this query?

正確答案: C
問題13
A non-correlated subquery can be defined as________ .

正確答案: C
問題14
EMPDET is an external table containing the columns EMPNO and ENAME. Which command would work in relation to the EMPDET table?

正確答案: A