1z0-051 Study Material

QUESTION NO: 1

You are granted the CREATE VIEW privilege. What does this allow you to do?

A. Create a table view.
B. Create a view in any schema.
C. Create a view in your schema.
D. Create a sequence view in any schema.
E. Create a view that is accessible by everyone.
F. Create a view only of it is based on tables that you created.

Answer: C

QUESTION NO: 2

User Mary has a view called EMP_DEPT_LOC_VU that was created based on the EMPLOYEES,DEPARTMENTS, and LOCATIONS tables. She has the privilege to create a public synonym, and would like to create a synonym for this view that can be used by all users of the database.Which SQL statement can Mary use to accomplish that task?

A. CREATE PUBLIC SYNONYM EDL_VU
ON emp_dept_loc_vu;
B. CREATE PUBLIC SYNONYM EDL:VU
FOR mary (emp_dept_loc_vu);
C. CREATE PUBLIC SYNONYM EDL_VU
FOR emp_dept_loc_vu;
D. CREATE SYNONYM EDL_VU
ON emp_dept_loc_vu
FOR EACH USER;
E. CREATE SYNONYM EDL_VU
FOR EACH USER
ON emp_dept_loc_vu;
F. CREATE PUBLIC SYNONYM EDL_VU
ON emp_dept_loc_vu
FOR ALL USERS;

Answer: C

QUESTION NO: 3

Which four are attributes of single row functions? (Choose four.)

A. cannot be nested
B. manipulate data items
C. act on each row returned
D. return one result per row
E. accept only one argument and return only one value
F. accept arguments which can be a column or an expression

Answer: B,C,D,F

QUESTION NO: 4

View the Exhibit and examine the structure of the PROMOTIONS table.
You need to generate a report of all promos from the PROMOTIONS table based on the following conditions:

1. The promo name should not begin with ‘T’ or ‘N’.
2. The promo should cost more than $20000.
3. The promo should have ended after 1st January 2001.
Which WHERE clause would give the required result?
A.WHERE promo_name NOT LIKE ‘T%’ OR promo_name NOT LIKE ‘N%’ AND promo_cost >
20000 AND promo_end_date > ‘1-JAN-01’
B.WHERE (promo_name NOT LIKE ‘T%’ AND promo_name NOT LIKE ‘N%’)OR promo_cost >
20000 OR promo_end_date > ‘1-JAN-01’
C.WHERE promo_name NOT LIKE ‘T%’ AND promo_name NOT LIKE ‘N%’ AND promo_cost >
20000 AND promo_end_date > ‘1-JAN-01’
D.WHERE (promo_name NOT LIKE ‘%T%’ OR promo_name NOT LIKE ‘%N%’) AND(promo_cost >
20000 AND promo_end_date > ‘1-JAN-01’)

Answer: C

QUESTION NO: 5

Which two statements are true regarding indexes? (Choose two.)

A. They can be created on tables and clusters.
B. They can be created on tables and simple views.
C. You can create only one index by using the same columns.
D. You can create more than one index by using the same columns if you specify distinctly different combinations of the columns.

Answer: A,D

Leave a comment