1Z0 007 C
1Z0 007 C
1Z0 007 C
Q 2. You created a view called EMP_DEPT_VU that contains three columns from the
EMPLOYEES and DEPARTMENTS tables:
F. You must remove the existing view first, and then run the CREATE VIEW command with a new
column list to modify a view.
F. You cannot group the rows of a table by more than one column while using aggregate
functions.
Q 4. In a SELECT statement that includes a WHERE clause, where is the GROUP BY clause
placed in the SELECT statement?
A. A single row subquery can retrieve data from only one table.
B. A SQL query statement cannot display data from table B that is referred to in its subquery,
unless table B is included in the main query's FROM clause.
C. A SQL query statement can display data from table B that is referred to in its subquery, without
including table B in its own FROM clause.
D. A single row subquery can retrieve data from more than one table.
E. A single row subquery cannot be used in a condition where the LIKE operator is used for
comparison.
F. A multiple-row subquery cannot be used in a condition where the LIKE operator is used for
comparison.
A. MERGE
B. INSERT
C. UPDATE
D. ADD
E. ENTER
F. You cannot enter the phone numbers for the existing employee records.
Q 10. Which three functions can be used to manipulate character, number, or date column
values? (Choose three.)
A. CONCAT
B. ROUND
C. TRUNC
D. RPAD
E. INSTR
Q 11. Which two data types can be converted to LOBs using an ALTER TABLE…MODIFY
command? (Choose two.)
A. RAW
B. LONG
C. VARCHAR
D. LONG RAW
Q 12. The EMPLOYEES table is stored in the SAMPLE tablespace. The corresponding
IPK_EMP index for the EMPLOYEES table’s primary key is stored in the INDX tablespace.
Out of 12 partition, only partition P1 of the SALES table is stored in the SAMPLE
tablespace.
A. It performs a merge join of the row from T2 only if it doesn’t exist in the T1 table.
B. It creates a natural join of tables T1 and T2 for all columns that have the same name.
C. It creates a Cartesian product of table T1 and table T2 for all columns that have the same
name.
D. For each row from T2, it updates the row if it exists within table T1, otherwise it inserts the row
into T1.
Q 14. You need to create the CURRENTPR table. The table must meet these requirements
1. The table must contain the EMPLOYEE_ID and HRS_WORKED columns for numeric data.
2. The table must contain the PAY_DATE column for date values.
3. The table must contain the PAY_RATE and PAY_AMT columns for numeric data with precision
and scale of 5,2 and 10,2 respectively.
4. The table must have a composite primary key on the EMPLOYEE_ID and PAY_RATE columns.
Q 15. For which two types of constraints will a unique index be automatically created?
(Choose two.)
A. UNIQUE
B. PRIMARY KEY
C. NOT NULL
D. FOREIGN KEY
E. CHECK
Q 16. You disabled the PRIMARY KEY constraint on the ID column in the INVENTORY table
and updated all the values in the INVENTORY table. You need to enable the constraint and
verify that the new ID column values do not violate the constraint. If any of the ID column
values do not conform to the constraint, an error message should be returned.
Q 17. Which four statements about Oracle constraints are true? (Choose four.)
Q 19. Which CREATE TABLE statements will fail? (Choose all that apply.)
Q 21. Which of the following correctly shows the correct use of the TRUNC command on a
date?
To write a query that performs an outer join of tables A and B and returns all rows from B, you
need to write
Ans A,C
A. a left outer join
B. any outer join
C. a right outer join
D. an inner join
E. a cross join
Q 23. Which of the following is true if you use the alter tablespace statement and specify
the TEMPORARY clause (Choose all that apply)?
1. C
2. E
3. C&D
4. E
5. B&D
6. C
7. E&F
8. B
9. B
10. AD&E
11. B&D
12. D
13. D
14. D
15. A&B
16. A
17. ABC&D
18. B
19. BD&E
20. C
21. A
22. C
23. A,B,D