Prueba

Páginas: 27 (6685 palabras) Publicado: 1 de julio de 2011
Exam Name: Exam Type: Doc. Type:

Introduction to Oracle9i: SQL Oracle Q & A with explanations

Exam Code: Total Questions

1Z0-007 295

Contents Objective A. B. C. D. E. F. G. H. I. J. K. Writing Basic SQL Select Statements Restricting and Sorting Data Single-Row Functions & Group Functions. Displaying Data from Multiple Tables Subquerie Creating and Managing Tables Including ConstraintsManipulating Data Creating Views Creating Other Database Objects Controlling User Access

? Relevant objective of each question is mentioned with question number.

Exam Name: Exam Type: Doc. Type:

Introduction to Oracle9i: SQL Oracle Q & A with explanations

Exam Code: Total Questions

1Z0-007 295

Question: 1. (A) Which SELECT statement should you use if you want to display uniquecombinations of the POSITION and MANAGER values from the EMPLOYEE table? A. SELECT DISTINCT position, manager FROM employee; B. SELECT position, manager DISTINCT FROM employee; C. SELECT position, manager FROM employee; D. SELECT position, DISTINCT manager FROM employee; Answer: A Explanation: To display a unique values in the result you can use the DISTINCT key word this will eliminate theduplicate values from the result of the query. Question: 2. (A) Which two are attributes of /SQL*Plus? (Choose two) A. /SQL*Plus commands cannot be abbreviated. B. /SQL*Plus commands are accesses from a browser. C. /SQL*Plus commands are used to manipulate data in tables. D. /SQL*Plus commands manipulate table definitions in the database. E. /SQL*Plus is the Oracle proprietary interface for executingSQL statements. Answer: C, D Explanation: SQL*Plus commands can be used to manipulate data in tables and SQL*Plus commands manipulate table definitions in the database. Incorrect Answers A: SQL*Plus commands can be abbreviated. Like command DESCRIBE can be abbreviated as DESC, or SELECT as SELE. B: SQL*Plus commands are not accesses from a browser. E: SQL*Plus is not only the Oracle proprietaryinterface for executing SQL statements. OCP Introduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 38-48 Chapter 1: Overview of Oracle Databases Question: 3. (A) You need to perform certain data manipulation operations through a view called EMP_DEPT_VU, which you previously created. You want to look at the definition of the view (the SELECT statement on which the view was create.) How do youobtain the definition of the view? A. Use the DESCRIBE command in the EMP_DEPT VU view. B. Use the DEFINE VIEW command on the EMP_DEPT VU view. C. Use the DESCRIBE VIEW command on the EMP_DEPT VU view. D. Query the USER_VIEWS data dictionary view to search for the EMP_DEPT_VU view.

Exam Name: Exam Type: Doc. Type:

Introduction to Oracle9i: SQL Oracle Q & A with explanations

Exam Code:Total Questions

1Z0-007 295

E. Query the USER_SOURCE data dictionary view to search for the EMP_DEPT_VU view. F. Query the USER_OBJECTS data dictionary view to search for the EMP_DEPT_VU view. Answer: D

Explanation: To look on the view definition you need to query the USER_VIEWS data dictionary view and search for the EMP_DEPT_VU view. Incorrect Answers A: You cannot see the definition of theview using the DESCRIBE command. B: There is no DEFINE VIEW command in Oracle. C: There is no DESCRIBE VIEW command in Oracle. E: You cannot use the USER_SOURCE data dictionary view to see the definition of your view: it is used to store system objects definitions only. F: You can find record about view in the USER_OBJECTS, but it does not contain the definition of the view itself. OCPIntroduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 291-301 Chapter 7: Creating Other Database Objects in Oracle Question: 4. (A) Which is an /SQL*Plus command? A. INSERT B. UPDATE C. SELECT D. DESCRIBE E. DELETE F. RENAME Answer: D

Explanation: There is only one SQL*Plus command in this list: DESCRIBE. It cannot be used as SQL command. This command returns a description of tablename,...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Prueba
  • Prueba
  • Prueba
  • Prueba
  • Prueba
  • Pruebas
  • Pruebas
  • Prueba

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS