




已阅读5页,还剩88页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Oracle 1Z0-007Introduction to Oracle9i: SQL156 Q&ALooking for Real Exam Questions for IT Certification Exams!We guarantee you can pass any IT certification exam at your first attempt with just 10-12hours 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 all graphicsand drag-n-drop exhibits shown just as on the real test.To test the quality of our guides, you can download the one-fourth portion of any guide from absolutely 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 Microsoft: 70-270, 70-305, 70-526, MB2-421 Cisco 642-901, 642-871, 642-611, 642-502, 642-425, 646-561 Oracle: 1Z0-001, 1Z0-007, 1Z0-040, 1Z0-200 Novell: 50-676, 50-565 Adobe: 9A0-019 Apple: 9L0-004, 9L0-505, 9L0-606 3COM: 3M0-211 Citrix: 1Y0-223, 1Y0-256 CIW: 1D0-420 EMC: E20-001 Enterasys: 2B0-011 Exam Express: EE0-011 Foundry: FN0-100 Hyperion: 4H0-002 HP: HP0-045, HP0-052, HP0-055, HP0-090, HP0-216, HP0-417 Juniper: JN0-120, JN0-330 Lotus: 190-510 Network Appliances: NS0-121 Network General: 1T6-520 Nortel: 920-430, 920-803 OMG: UM0-100 Sybase: 510-015 SAIR: 3X0-101, 201 SAS: A00-201 Tibco: TB0-103 .For pricing and placing order, please visit /order.htmlWe accept all major credit cards through For other payment options and any further query, feel free to mail us Q: 1 Examine the structure of the EMPLOYEES table:EMPLOYEE_ID NUMBER Primary KeyFIRST_NAME VARCHAR2(25)LAST_NAME VARCHAR2(25)Which three statements insert 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, FQ: 2 Evaluate the SQL statement:SELECT ROUND(45.953, -1), TRUNC(45.936, 2)FROM dual;Which values are displayed?A.B.C.D.E.F.46 and 4546 and 45.9350 and 45.9350 and 45.945 and 45.9345.95 and 45.93Answer: Cwww.CertificationK-3-Q: 3 Which are DML statements? (Choose all that apply.)A.B.C.D.E.F.COMMITMERGEUPDATEDELETECREATEDROP.Answer: B, C, DQ: 4 Evaluate the set of SQL statements:CREATE TABLE dept(deptno NUMBER(2),dname VARCHAR2(14),loc VARCHAR2(13);ROLLBACK;DESCRIBE DEPTWhat is true about the set?A. The DESCRIBE DEPT statement displays the structure of the DEPT table.B. The ROLLBACK statement frees the storage space occupied by the DEPT table.C. The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist.D. The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMITstatement introduced before the ROLLBACK statement.Answer: AQ: 5 Evaluate this SQL statement:SELECT ename, sal, 12*sal+100FROM emp;The SAL column stores the monthly salary of the employee. Which change must be made to the abovesyntax to calculate the annual compensation as monthly salary plus a monthly bonus of $100, multipliedby 12?A. No change is required to achieve the desired results.www.CertificationK-4-B. SELECT ename, sal, 12*(sal+100)FROM emp;C. SELECT ename, sal, (12*sal)+100FROM emp;D. SELECT ename, sal+100,*12FROM emp;Answer: BQ: 6 Examine the SQL statement that creates ORDERS table:CREATE TABLE orders(SER_NO NUMBER UNIQUE,ORDER_ID NUMBER,ORDER_DATE DATE NOT NULL,STATUS VARCHAR2(10)CHECK (status IN (CREDIT, CASH),PROD_ID NUMBERREFERENCES PRODUCTS(PRODUCT_ID),ORD_TOTAL NUMBER,PRIMARY KEY (order_id, order_date);For which columns would an index be automatically created when you execute the above SQL statement?(Choose two.)A.B.C.D.E.F.SER_NOORDER_IDSTATUSPROD_IDORD_TOTALcomposite index on ORDER_ID and ORDER_DATEAnswer: A, FQ: 7 Examine the structure of the EMP_DEPT_VU view:Column Name Type RemarksEMPLOYEE_ID NUMBERFrom the EMPLOYEES tableEMP_NAME VARCHAR2(30) From the EMPLOYEES tableJOB_ID VARCHAR2(20) From the EMPLOYEES tableSALARY NUMBERDEPARTMENT_ID NUMBERFrom the EMPLOYEES tableFrom the DEPARTMENTS tableDEPT_NAME VARCHAR2(30) From the DEPARTMENTS tablewww.CertificationK-5-Which SQL statement produces an error?A. SELECT *FROM emp_dept_vu;B. SELECT department_id, SUM(salary)FROM emp_dept_vuGROUP BY department_id;C. SELECT department_id, job_id, AVG(salary)FROM emp_dept_vuGROUP BY department_id, job_id;D. SELECT job_id, SUM(salary)FROM emp_dept_vuWHERE department_id IN (10,20)GROUP BY job_idHAVING SUM(salary) 20000;E. None of the statements produce an error; all are valid.Answer: EQ: 8 Click the Exhibit button and examine the data from the ORDERS andCUSTOMERS tables.Evaluate this SQL statement:SELECT cust_id, ord_totalFROM ordersWHERE ord_total ANY(SELECT ord_totalFROM ordersWHERE cust_id IN (SELECT cust_idFROM customersWHERE city LIKENew York);What is the result when the above query is executed?www.CertificationK-6-www.CertificationK-7-www.CertificationK-8-A. AAnswer: AQ: 9 Evaluate this SQL statement:SELECT e.EMPLOYEE_ID,e.LAST_NAME,e.DEPARTMENT_ID, d.DEPARTMENT_NAMEFROM EMPLOYEES e, DEPARTMENTS dWHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID;In the statement, which capabilities of a SELECT statement are performed?A.B.C.D.E.selection, projection, joindifference, projection, joinselection, intersection, joinintersection, projection, joindifference, projection, productAnswer: AQ: 10 Click the Exhibit button and examine the data from the EMP table.The COMMISSION column shows the monthly commission earned by the employee.Which three tasks would require subqueries or joins in order to be performed in a single step? (Choosethree.)www.CertificationK-9-A. deleting the records of employees who do not earn commissionB. increasing the commission of employee 3 by the average commission earned in department 20C. finding the number of employees who do NOT earn commission and are working for department 20D. inserting into the table a new employee 10 who works for department 20 and earns a commission that isequal to the commission earned by employee 3E. creating a table called COMMISSION that has the same structure and data as the columns EMP_ID andCOMMISSION of the EMP tableF. decreasing the commission by 150 for the employees who are working in department 30 and earning acommission of more than 800Answer: B, D, EQ: 11 You need to modify the STUDENTS table to add a primary key on theSTUDENT_ID column. The table is currently empty. Which statement accomplishes this task?A. ALTER TABLE studentsADD PRIMARY KEY student_id;B. ALTER TABLE studentsADD CONSTRAINT PRIMARY KEY (student_id);C. ALTER TABLE studentsADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;D. ALTER TABLE studentsADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);E. ALTER TABLE studentsMODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id);Answer: Dwww.CertificationK- 10 -Q: 12 Which three are DATETIME data types that can be used when specifyingcolumn definitions? (Choose three.)A.B.C.D.E.TIMESTAMPINTERVAL MONTH TO DAYINTERVAL DAY TO SECONDINTERVAL YEAR TO MONTHTIMESTAMP WITH DATABASE TIMEZONEAnswer: A, C, DQ: 13 The EMPLOYEES table contains these columns:LAST_NAME VARCHAR2 (25)SALARY NUMBER (6,2)COMMISSION_PCT NUMBER (6)You need to write a query that will produce these results:1. Display the salary multiplied by the commission_pct.2. Exclude employees with a zero commission_pct.3. Display a zero for employees with a null commission value.Evaluate the SQL statement:SELECT LAST_NAME, SALARY*COMMISSION_PCTFROM EMPLOYEESWHERE COMMISSION_PCT IS NOT NULL;What does the statement provide?A.B.C.D.all of the desired resultstwo of the desired resultsone of the desired resultsan error statementAnswer: CQ: 14 Evaluate the SQL statement:TRUNCATE TABLE DEPT;www.CertificationK- 11 -Which three are true about the SQL statement? (Choose three.)A. It releases the storage space used by the table.B. It does not release the storage space used by the table.C. You can roll back the deletion of rows after the statement executes.D. You can NOT roll back the deletion of rows after the statement executes.E. An attempt to use DESCRIBE on the DEPT table after the TRUNCATE statement executes will display anerror.F. You must be the owner of the table or have DELETE ANY TABLE system privileges to truncate the DEPTtable.Answer: A, D, FQ: 15 The EMP table contains these columns:EMPLOYEE_ID NUMBER(4)EMPNAME VARCHAR2 (25)SALARY NUMBER(9,2)HIRE_DATE DATEYou query the database with this SQL statement:SELECT empname,hire_date HIREDATE, salaryFROM EMPORDER BY hire_date;How will the results be sorted?A.B.C.D.E.randomlyascending by datedescending by dateascending alphabeticallydescending alphabeticallyAnswer: BQ: 16 Mary has a view called EMP_DEPT_LOC_VU that was created based onthe EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. She granted SELECT privilege to Scotton this view. Which option enables Scott to eliminate the need to qualify the view with the nameMARY.EMP_DEPT_LOC_VU each time the view is referenced?www.CertificationK- 12 -A. Scott can create a synonym for the EMP_DEPT_LOC_VU by using the commandCREATE PRIVATE SYNONYM EDL_VUFOR mary.EMP_DEPT_LOC_VU;then he can prefix the columns with this synonym.B. Scott can create a synonym for the EMP_DEPT_LOC_VU by using the commandCREATE SYNONYM EDL_VUFOR mary.EMP_DEPT_LOC_VU;then he can prefix the columns with this synonym.C. Scott can create a synonym for the EMP_DEPT_LOC_VU by using the commandCREATE LOCAL SYNONYM EDL_VUFOR mary.EMP_DEPT_LOC_VU;then he can prefix the columns with this synonym.D. Scott can create a synonym for the EMP_DEPT_LOC_VU by using the commandCREATE SYNONYM EDL_VUON mary(EMP_DEPT_LOC_VU);then he can prefix the columns with this synonym.E. Scott cannot create a synonym because synonyms can be created only for tables.F. Scott cannot create any synonym for Marys view. Mary should create a private synonym for the view andgrant SELECT privilege on that synonym to Scott.Answer: BQ: 17 A subquery can be used to _.A.B.C.D.create groups of datasort data in a specific orderconvert data to a different formatretrieve data based on an unknown conditionAnswer: DQ: 18 Click the Exhibit button to examine the data of the EMPLOYEES table.Which statement lists the ID, name, and salary of the employee, and the ID and name of the employeesmanager, for all the employees who have a manager and earn more than 4000?www.CertificationK- 13 -A. SELECT employee_id Emp_id, emp_name Employee,salary,employee_id Mgr_id, emp_name ManagerFROM employeesWHERE salary 4000;B. SELECT e.employee_id Emp_id, e.emp_name Employee,e.salary,m.employee_id Mgr_id, m.emp_name ManagerFROM employees e JOIN employees mWHERE e.mgr_id = m.mgr_idAND e.salary 4000;C. SELECT e.employee_id Emp_id, e.emp_name Employee,e.salary,m.employee_id Mgr_id, m.emp_name ManagerFROM employees e JOIN employees mON (e.mgr_id = m.employee_id)AND e.salary 4000;D. SELECT e.employee_id Emp_id, e.emp_name Employee,e.salary,m.mgr_id Mgr_id, m.emp_name ManagerFROM employees e SELF JOIN employees mWHERE e.mgr_id = m.employee_idAND e.salary 4000;E. SELECT e.employee_id Emp_id, e.emp_name Employee,e.salary,m.mgr_id Mgr_id m.emp_name ManagerFROM employees e JOIN employees mwww.CertificationK- 14 -USING (e.employee_id = m.employee_id)AND e.salary 4000;Answer: CQ: 19 The EMPLOYEES table has these columns:LAST_NAME VARCHAR2(35)SALARY NUMBER(8,2)HIRE_DATE DATEManagement wants to add a default value to the SALARY column. You plan to alter the table by usingthis SQL statement:ALTER TABLE EMPLOYEESMODIFY (SALARY DEFAULT 5000);Which is true about your ALTER statement?A.B.C.D.Column definitions cannot be altered to add DEFAULT values.A change to the DEFAULT value affects only subsequent insertions to the table.Column definitions cannot be altered to add DEFAULT values for columns with a NUMBER data type.All the rows that have a NULL value for the SALARY column will be updated with the value 5000.Answer: BQ: 20 Examine the description of the CUSTOMERS table:CUSTOMER_IDCUSTOMER_NAMENUMBER(4) NOT NULLVARCHAR2(100) NOT NULLSTREET_ADDRESS VARCHAR2(150)CITY_ADDRESS VARCHAR2(50)STATE_ADDRESSVARCHAR2(50)PROVINCE_ADDRESS VARCHAR2(50)COUNTRY_ADDRESSVARCHAR2(50)POSTAL_CODE VARCHAR2(12)CUSTOMER_PHONE VARCHAR2(20)The CUSTOMER_ID column is the primary key for the table.Which statement returns the city address and the number of customers in the cities Los Angeles or SanFrancisco?www.CertificationK- 15 -A. SELECT city_address, COUNT(*)FROM customersWHERE city_address IN (Los Angeles, San Francisco);B. SELECT city_address, COUNT(*)FROM customersWHERE city_address IN (Los Angeles, San Francisco)GROUP BY city_address;C. SELECT city_address, COUNT(customer_id)FROM customersWHERE city_address IN (Los Angeles, San Francisco)GROUP BY city_address, customer_id;D. SELECT city_address, COUNT(customer_id)FROM customersGROUP BY city_address IN (Los Angeles, San Francisco);Answer: BQ: 21 Click the Exhibit button to examine the structures of the EMPLOYEES,DEPARTMENTS, and TAX tables.For which situation would you use a nonequijoin query?www.CertificationK- 16 -A. to find the tax percentage for each of the employeesB. to list the name, job_id, and manager name for all the employeesC. to find the name, salary, and the department name of employees who are not working with SmithD. to find the number of employees working for the Administrative department and earning less than 4000E. to display name, salary, manager ID, and department name of all the employees, even if the employees donot have a department ID assignedAnswer: AQ: 22 The EMP table contains these columns:LAST_NAME VARCHAR2 (25)SALARY NUMBER (6,2)DEPARTMENT_ID NUMBER (6)You need to display the employees who have not been assigned to any department. You write theSELECT statement:SELECT LAST_NAME, SALARY, DEPARTMENT_IDwww.CertificationK- 17 -FROM EMPWHERE DEPARTMENT_ID = NULL;What is true about this SQL statement ?A.B.C.D.The SQL statement displays the desired results.The column in the WHERE clause should be changed to display the desired results.The operator in the WHERE clause should be changed to display the desired results.The WHERE clause should be changed to use an outer join to display the desired results.Answer: CQ: 23 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 asequence, without actually retrieving the value.B. You use a CURRVAL pseudo column to look at the current value just generated from a sequence, withoutaffecting 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 actuallyretrieving the value from the sequence.D. You use a CURRVAL pseudo column to generate a value from a sequence that would be used for aspecified database column.E. If a sequence starting from a value 100 and incremented by 1 is used by more than one application, then allof these applications could have a value of 105 assigned to their column wh
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025湖南中烟工业有限责任公司招聘拟录用人员笔试历年参考题库附带答案详解
- 2025中国燃气控股呼和浩特中燃城市燃气发展有限公司招聘笔试历年参考题库附带答案详解
- 2025年甘肃省庆阳市西峰区招聘城镇公益性岗位20人模拟试卷及答案详解(名校卷)
- 2025呼伦贝尔莫旗消防救援大队招聘消防文员考前自测高频考点模拟试题及参考答案详解1套
- 2025江苏南京地铁集团有限公司校园招聘(三)模拟试卷及答案详解(全优)
- 2025年上半年资中县面向社会公开选聘社区工作者的(71人)考前自测高频考点模拟试题含答案详解
- 2025年4月贵州黔南州福泉市招聘城镇公益性岗位4人模拟试卷及答案详解(易错题)
- 2025贵州省卫生健康委员会“银龄计划”(引进退休高级医疗卫生人才)模拟试卷附答案详解(考试直接用)
- 2025湖南分公司本部面向华电集团系统内公开招聘模拟试卷及答案详解(新)
- 2025年上半年资中县面向社会公开选聘社区工作者的(71人)模拟试卷附答案详解(考试直接用)
- 建设工程各方安全管理制度清单及法规依据
- 医疗设备备品备件保障方案
- 小红书种草营销师(初级)认证考试真题试题库(含答案)
- 人教版数学四年级上册-第五单元《平行四边形和梯形》练习题(含答案)
- 零工市场(驿站)运营管理 投标方案(技术方案)
- 新《全面质量管理(习题集)》考试题库(含答案)
- 农村建房的邻居协议书模板
- 水杨酸软膏剂的制备
- 《铁皮石斛的介绍》课件
- JCT478.2-2013 建筑石灰试验方法 第2部分 化学分析方法
- 大数据、智慧城市与智慧交通(上)
评论
0/150
提交评论