• Embed Doc
  • Readcast
  • Collections
  • 4
    CommentGo Back
Download
 
 
Looking for Real Exam Questions for IT Certification Exams!We Guarantee you can pass any IT certification exam at your first attempt with just 10-12 hours study of our guides.Our study guides contain actual exam questions, you will get word to word same on youractual test; accurate answers with detailed explanation verified by experts and allgraphics and drag-n-drop exhibits shown just as on the real testTo test the quality of our guides, you can download the one-third portion of any guidefromhttp://www.certificationking.comabsolutely free.Besides, we also offer complete version of following exams absolutely free. You can startyour certification from these free guides and if you are satisfied you can buy the rest
 
MCSE/MCSA: 70-215 & 70-290
 
MCAD/MCSA: 70-305 & 70-229
 
CCNP: 642-801
 
CCSP: 642-501
 
CCIP: 642-611
OCP 9i: 1Z0-007
 
CIW: 1D0-410
 
Novell: 50-632 & 50-650
 
Citrix: 1Y0-610
 
LOTUS: 190-510For pricing and placing order, please visithttp://certificationking.com/order.htmlWe accept all major credit cards throughwww.paypal.comFor other payment options and any further query, feel free to mail us atinfo@certificationking.com
 
 
 
Exam : 1Z0-007Title : Introduction to Oracle9i: SQL
# QUESTION
 
1Examine the data in the EMPLOYEES and DEPARTMENTS tables.EMPLOYEESLAST_NAME DEPARTMENT_ID SALARYGetz 10 3000Davis 20 1500King 20 2200Davis 30 5000Kochhar 5000DEPARTMENTSDEPARTMENT_ID DEPARTMENT_NAME10 Sales20 Marketing30 Accounts40 AdministrationYou want to retrieve all employees, whether or not they have matching departments inthe departments table. Which query would you use?A. SELECT last_name, department_nameFROM employees , departments(+);B. SELECT last_name, department_nameFROM employees JOIN departments (+);C. SELECT last_name, department_nameFROM employees(+) e JOIN departments dON (e.department_id = d.department_id);D. SELECT last_name, department_nameFROM employees eRIGHT OUTER JOIN departments d ON (e.department_id = d.department_id);E. SELECT last_name, department_nameFROM employees(+) , departmentsON (e.department_id = d.department_id);F. SELECT last_name, department_nameFROM employees e LEFT OUTERJOIN departments d ON (e.department_id = d.department_id); Answer:FExplanation:Answer F is correct. This query shows correct syntax to retrieve all employees, whether or notthey have matching departments in the department table. Oracle9i extends its compliance withANSI/ISO by supporting that standard's requirements for outer join syntax and semantics.
 
 Incorrect AnswersA: This query uses "+" to create outer join as it was in Oracle8i, but it requires also usage of WHERE clause in SELECT statement.B: The JOIN clause cannot be used with in conjunction with "+": syntax is incorrect.
 
C: The JOIN clause cannot be used with in conjunction with "+": syntax is incorrect.D: This statement requires LEFT OUTER JOIN, not RIGHT OUTER JOIN.E: This query uses incorrect syntax with "+" and ON to create outer join.OCP Introduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 112-114Chapter 3: Advanced Data Selection in Oracle # QUESTION
 
2Examine the structure of the EMPLOYEES table:EMPLOYEE_ID NUMBER Primary KeyFIRST_NAME VARCHAR2(25)LAST_NAME VARCHAR2(25)Which three statements inserts a row into the table? (Choose three)A. INSERT INTO employeesVALUES ( NULL, 'John','Smith');B. INSERT INTO employees( first_name, last_name)VALUES('John','Smith');C. INSERT INTO employeesVALUES ('1000','John',NULL);D. INSERT INTO employees(first_name,last_name, employee_id)VALUES ( 1000, 'John','Smith');E. INSERT INTO employees (employee_id)VALUES (1000);F. INSERT INTO employees (employee_id, first_name, last_name)VALUES ( 1000, 'John',''); Answer:C, E, FExplanation:Since EMPLOYEE_ID column is used as primary key, it cannot be NULL, so only INSERTstatements in C, E and F are correct. You can insert the row with NULL LAST_NAME as inanswer C, or only the row with EMPLOYEE_ID as in answer E, or the row with emptyLAST_NAME column.Incorrect AnswersA: This answer is incorrect because a primary key cannot be NULL.B: INSERT statement does not contain primary key value at all, so this answer needs to beeliminated as correct one.D: This statement shows incorrect order of columns of row which needs to be inserted intothe table.OCP Introduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 260-267Chapter 6: Manipulating Oracle Data 
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
05 / 23 / 2010This doucment made it onto the Rising List!
You must be to leave a comment.
Submit
Characters: ...