Free 1Z1-047 Questions for Oracle Database SQL Expert 1Z1-047 Exam as PDF & Practice Test Engine

  • Exam Code/Number: 1Z1-047
  • Exam Name/Title: Oracle Database SQL Expert
  • Certification Provider: Oracle
  • Corresponding Certification: Other Oracle Certification
  • Exam Questions: 264
  • Updated On: Nov 27, 2026
Which two statements are true regarding subqueries? (Choose three.)
Correct Answer: A,D,E Vote an answer
View the Exhibit and examine the structure of EMPLOYEES and JOB_IHISTORY tables.
The EMPLOYEES table maintains the most recent information regarding salary, department, and job for all the employees. The JOB_HISTORY table maintains the record for all the job changes for the employees. You want to delete all the records from the JOB_HISTORY table that are repeated in the EMPLOYEES table.
Which two SQL statements can you execute to accomplish the task? (Choose two.)

A DELETE FROM job_history j WHERE employee_id = (SELECT employee_id FROM employees e WHERE j.employee_id = e.employee_id) AND job _id = (SELECT job _id FROM employees e WHERE j.job_id = e.job_id);
B. DELETE FROM job_history j WHERE (employee_id, job _id) = ALL (SELECT employee_id, job_id FROM employees e WHERE j.employee_id = e.employee_id and j.job_id = e.job_id)
C. DELETE FROM job_history j WHERE employee_id = (SELECT employee_id FROM employees e WHERE j.employee_id = e.employee_id and j.job_id = e.job_id)
D. DELETE FROM job_history j WHERE (employee_id, job _id) = (SELECT employee_id, job_id FROM employees e WHERE j.employee_id = e.employee_id and j.job_id = e.job_id)
Correct Answer:
CD
View the Exhibit and examine the description of the EMPLOYEES table.
You want to display the EMPLOYEE_ID, FIRST_NAME, and DEPARTMENT_ID for all the
employees who work in the same department and have the same manager as that of the
employee having EMPLOYEE_ID 104. To accomplish the task, you execute the following SQL
statement:
SELECT employee_id, first_name, department_id
FROM employees
WHERE (manager_id, department_id) =(SELECT department_id, manager_id FROM employees
WHERE employee_id = 104)
AND employee_id <> 104;
When you execute the statement it does not produce the desired output. What is the reason for
this?
Correct Answer: B Vote an answer
User OE, the owner of the ORDERS table, issues the following command:
GRANT SELECT .INSERT ON orders TO hr WITH GRANT OPTION;
The user HR issues the following command:
GRANT SELECT ON oe. orders
TO scott;
Then, OE issues the following command: REVOKE ALL ON orders FROM hr;
Which statement is correct?
Correct Answer: D Vote an answer
View the Exhibit and examine the structure of ORD and ORD_ITEMS tables.
In the ORD table, the PRIMARY KEY is ORD_NO and in the ORD_ITEMS tables the composite PRIMARY KEY is (ORD_NO, ITEM_NO).
Which two CREATE INDEX statements are valid? (Choose two.)
Correct Answer: C,D Vote an answer
Evaluate the following CREATE SEQUENCE statement:
CREATE SEQUENCE seql START WITH 100
INCREMENT BY 10 MAXVALUE 200 CYCLE NOCACHE;
The sequence SEQ1 has generated numbers up to the maximum limit of 200. You issue the following SQL statement:
SELECT seql.nextval FROM dual;
What is displayed by the SELECT statement?
Correct Answer: B Vote an answer
The following are the steps for a correlated subquery, listed in random order:
1) The WHERE clause of the outer query is evaluated.
2) The candidate row is fetched from the table specified in the outer query.
3) The procedure is repeated for the subsequent rows of the table, till all the rows are processed.
4) Rows are returned by the inner query, after being evaluated with the value from the candidate
row in the outer query. Identify the option that contains the steps in the correct sequence in which
the Oracle server evaluates a correlated subquery.
Correct Answer: C Vote an answer
View the Exhibit and examine the structure of the ORDERS table. Which task would require subqueries?
Correct Answer: B Vote an answer
Which three tasks can be performed using regular expression support in Oracle Database 10g? (Choose three.)
Correct Answer: A,D,E Vote an answer
You need to create a table with the following column specifications:
1.Employee ID (numeric data type) for each employee
2.Employee Name, (character data type) which stores the employee name
3.Hire date, to store the date when the employee joined the organization
4.Status (character data type). It should contain the value if no data is entered.
5.Resume (character large object [CLOB] data type), which would contain the resume submitted by the employee
Which is the correct syntax to create this table?
Correct Answer: C Vote an answer
View the Exhibit and examine the data in EMPLOYEES and
DEPARTMENTS tables. In the EMPLOYEES table EMPLOYEE_ID is the PRIMARY KEY and
DEPARTMENT_ID is the FOREIGN KEY. In the DEPARTMENTS table DEPARTMENT_ID is the
PRIMARY KEY.
Evaluate the following UPDATE statement:
UPDATE employees a
SET department_jd =
(SELECT department_id
FROM departments
WHERE location_id = '2100'),
(salary, commission_pct) =
(SELECT 1.1*AVG(salary), 1.5*AVG(commission_pct)
FROM employees b
WHERE a. department_jd = b. department_id)
WHERE first_name|| '||last_name = 'Amit Banda';
What would be the outcome of the above statement?
Correct Answer: B Vote an answer
Which two statements are true regarding roles? (Choose two.)
Correct Answer: A,C Vote an answer
0
0
0
10