1Z0-061 Dumps

1Z0-061 Free Practice Test

Oracle 1Z0-061: Oracle Database 12c SQL Fundamentals

QUESTION 16

- (Topic 3)
Examine the structure of the EMPLOYEES table:
EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2(30)
JOB_ID NUMBER\ SAL NUMBER
MGR_ID NUMBER . References EMPLOYEE_ID column
DEPARTMENT_ID NUMBER . Foreign key to DEPARTMENT_ID column of the. . DEPARTMENTS table
You created a sequence called EMP_ID_SEQ in order to populate sequential values for the EMPLOYEE_ID column of the EMPLOYEES table.
Which two statements regarding the EMP_ID_SEQ sequence are true? (Choose two.)

Correct Answer: CD
the EMP_ID_SEQ sequence is not affected by modification to the EMPLOYEES table. Any other column of NUMBER data type in your schema can use the EMP_ID_SEQ sequence.
Incorrect
A- EMP_ID_SEQ sequence can be use to populate JOB_ID
B- EMP_ID_SEQ sequence will not be invalidate when column in EMPLOYEE_ID is modify.
E- EMP_ID_SEQ sequence will be dropped automatically when you drop the EMPLOYEES table.
F- EMP_ID_SEQ sequence will be dropped automatically when you drop the EMPLOYEE_ID column.
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 12-4

QUESTION 17

- (Topic 3)
What is true regarding sub queries?

Correct Answer: D
The inner query returns a value to the outer query. If the inner query does not return a
value, the outer query does not return a result

QUESTION 18

- (Topic 2)
< >>>< ><>

Correct Answer: B
CHECK Constraint
The CHECK constraint defines a condition that each row must satisfy. The condition can use the same constructs as the query conditions, with the following exceptions: References to the CURRVAL, NEXTVAL, LEVEL, and ROWNUM pseudocolumns
Calls to SYSDATE, UID, USER, and USERENV functions Queries that refer to other values in other rows
A single column can have multiple CHECK constraints that refer to the column in its definition.
There is no limit to the number of CHECK constraints that you can define on a column. CHECK constraints can be defined at the column level or table level.
CREATE TABLE employees (...
salary NUMBER(8, 2) CONSTRAINT emp_salary_min CHECK (salary > 0),

QUESTION 19

- (Topic 4)
What is true about sequences?

Correct Answer: A

QUESTION 20

- (Topic 1)
Examine the structure of the employees table:
< ><>>>>< >

Correct Answer: B
We should use LEFT OUTER JOIN as we want to display employees which have no (have NULL values for) managers.