| Exam Code/Number: | 1Z0-047Join the discussion |
| Exam Name: | Oracle Database SQL Expert |
| Certification: | Oracle |
| Question Number: | 264 |
| Publish Date: | Jul 10, 2026 |
|
Rating
100%
|
|
View the Exhibit and examine the structure of the CUST table.
Evaluate the following SQL statements executed in the given order:
ALTER TABLE cust
ADD CONSTRAINT cust_id_pk PRIMARY KEY(cust_id) DEFERRABLE INITIALLY DEFERRED;
INSERT INTO cust VALUES (1,'RAJ1); --row 1
INSERT INTO cust VALUES (1,'SAM); --row 2 COMMIT;
SET CONSTRAINT cust_id_pk IMMEDIATE;
INSERT INTO cust VALUES (1,'LATA '); --row 3 INSERT INTO cust VALUES (2,'KING '); --row 4 COMMIT;
Which rows would be made permanent in the CUST table?
Which three statements are true regarding group functions? (Choose three.)
Which three statements are true regarding single-row functions? (Choose three.)
View the Exhibit and examine the description for EMPLOYEES and DEPARTMENTS tables.
Evaluate the following SQL statement:
SELECT e.department_id, e.job_id, d.location_id, sum(e. salary) total FROM employees e JOIN departments d ON e.department_id = d.department_id GROUP BY CUBE (e.department_id, e.job_id, d.location_id);
Which two statements are true regarding the output of this command? (Choose two.)
View the Exhibit and examine the structure of the LOCATIONS and DEPARTMENTS tables.
Which SET operator should be used in the blank space in the following SQL statement to display the cities that have departments located in them?
SELECT location_id, city
FROM locations
SELECT location_id, city FROM locations JOIN departments USING(location_id);