11. For which two constraints does the Oracle Server implicitly create a unique index?
(Choose two.)
A. NOT NULL
B. PRIMARY KEY
C. FOREIGN KEY
D. CHECK
E. UNIQUE
12. Examine the structure of the EMPLOYEES, DEPARTMENTS, and LOCATIONS
tables.
EMPLOYEES
EMPLOYEE_ID  NUMBER  NOT NULL, Primary Key
EMP_NAME  VARCHAR2 (30)
JOB_ID VARCHAR2 (20)
SALARY   NUMBER
MGR_ID  NUMBER  References EMPLOYEE_ID column
DEPARTMENT_ID  NUMBER  Foreign key to DEPARTMENT_ID column of the
DEPARTMENTS table
DEPARTMENTS
DEPARTMENT_ID NUMBER NOT NULL, Primary Key
DEPARTMENT_NAME  VARCHAR2(30)
MGR_ID  NUMBER  References NGR_ID column of the
EMPLOYEES table
LOCATION_ID NUMBER  Foreign key to LOCATION_ID column of the
LOCATIONS table
LOCATIONS
LOCATION_ID  NUMBER  NOT NULL, Primary Key
CITY  VARCHAR2 (30)Which two SQL statements produce the name, department name, and the city of all the
employees who earn more then 10000? (Choose two)
A.  SELECT emp_name, department_name, city 
FROM employees e
JOIN departments d
USING (department_id)
JOIN locations 1
USING (location_id)
WHERE salary > 10000;
B.  SELECT emp_name, department_name, city
FROM employees e, departments d, locations 1
JOIN ON (e.department_id = d.department id)
AND (d.location_id =1.location_id)
AND salary > 10000;
C.  SELECT emp_name, department_name, city
FROM employees e, departments d, locations 1
WHERE salary > 10000;
D.  SELECT emp_name, department_name, city
FROM employees e, departments d, locations 1
WHERE e.department_id = d.department_id
AND d.location_id = 1.location_id
AND salary > 10000;
E.  SELECT emp_name, department_name, city
FROM employees e
NATURAL JOIN departments, locations
WHERE salary > 10000;13. Which two statements about sequences are true? (Choose two)
A.  You use a NEXTVAL pseudo column to look at the next possible value that would be
generated from a sequence, without actually retrieving the value.
B. You use a CURRVAL pseudo column to look at the current value just generated from
a sequence, without affecting the further values to be generated from the sequence.
C. You use a NEXTVAL pseudo column to obtain the next possible value from a
sequence by actually retrieving the value from the sequence.
D.  You use a CURRVAL pseudo column to generate a value from a sequence that would
be used for a specified database column.
E.  If a sequence starting from a value 100 and incremented by 1 is used by more then one
application, then all of these applications could have a value of 105 assigned to their
column whose value is being generated by the sequence.
F.  You use REUSE clause when creating a sequence to restart the sequence once it
generates the maximum value defined for the sequence.14. Which three statements correctly describe the functions and use of constraints? (Choose
three.)
A.  Constraints provide data independence.
B.  Constraints make complex queries easy.
C.  Constraints enforce rules at the view level.
D.  Constraints enforce rules at the table level.
E.  Constraints prevent the deletion of a table if there are dependencies.
F.  Constraints prevent the deletion of an index if there are dependencies.