Oracle Database SQL - 1z0-071 Exam Practice Test

Examine these statements executed in a single Oracle session:
CREATE TABLE product (pcode NUMBER(2),pname VARCHAR2(20));
INSERT INTO product VALUES(1,'pen');
INSERT INTO product VALUES (2,'pencil');
INSERT INTO product VALUES(3,'fountain pen');
SAVEPOINT a;
UPDATE product SET pcode=10 WHERE pcode =1;
COMMIT;
DELETE FROM product WHERE pcode =2;
SAVEPOINT b;
UPDATE product SET pcode=30 WHERE pcode =3;
SAVEPOINT c;
DELETE FROM product WHERE pcode =10;
ROLLBACK TO SAVEPOINT b;
COMMIT;
Which three statements are true?
Correct Answer: B,C,F Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Examine this list of requirements for a sequence:
1. Name:EMP_SEQ
2. First value returned:1
3. Duplicates are never permitted.
4. Provide values to be inserted into the EMPLOYEES.EMPLOYEE_ID COLUMN.
5. Reduce the chances of gaps in the values.
Which two statements will satisfy these requirements?
Correct Answer: A,C Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Examine the data in the EMP table:

You execute this query:
SELECT deptno AS "Department", AVG(sal) AS AverageSalary, MAX(sal) AS "Max Salary" FROM emp WHERE sal >= 12000 GROUP BY "Department " ORDER BY AverageSalary; Why does an error occur?
Correct Answer: D Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Which three statements are true?
Correct Answer: C,D,E Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Examine the data in the COLORS table:

Examine the data in the BRICKS table:

Which two queries return all the rows from COLORS?
Correct Answer: D,E Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Examine the description of the SALES1 table:

SALES2 is a table with the same description as SALES1,
Some sales data is duplicated In both tables.
You want to display the rows from the SALES1 table which are not present in the SALIES2 table.
Which set operator generates the required output?
Correct Answer: D Vote an answer
Which three statements are true about single row functions?
Correct Answer: B,C,D Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
You create a table by using this command:
CREATE TABLE rate_list (rate NUMBER(6,2));
Which two are true about executing statements?
Correct Answer: B,E Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Examine the data in the PRODUCTS table:

Examine these queries:
1. SELECT prod name, prod list
FROM products
WHERE prod 1ist NOT IN(10,20) AND category _id=1;
2. SELECT prod name, | prod _ list
FROM products
WHERE prod list < > ANY (10,20) AND category _id= 1;
SELECT prod name, prod _ list
FROM products
WHERE prod_ list <> ALL (10, 20) AND category _ id= 1;
Which queries generate the same output?
Correct Answer: B Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
In your session, the NLS._DAE_FORMAT is DD- MM- YYYY.There are 86400 seconds in a day.Examine this result:
DATE
02-JAN-2020
Which statement returns this?
Correct Answer: C Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
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 less than 1000.
Which three DELETE statements execute successfully?
Correct Answer: A,B,D Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Which two are true about multiple table INSERT statements?
Correct Answer: A,B Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Which three are true aboutprivileges and roles?
Correct Answer: C,E,F Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Which two statements are true about * _TABLES views?
Correct Answer: C,F Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Which three are true about dropping columns from a table?
Correct Answer: B,D,F Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).