分享
 
 
 

1z0-001Braindumps05/15/2002

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

52/57

Hi there, I wish you enjoy my dumps and good luck!

1.Under which situation is it necessary to use on explicit cursor?

A. When any DML or SELECT statement is used in a PL/SQL block

B. When a delete statement in a pl/sql block deletes more than one row

C. When a select statement in pl/sql retrieves more than one row

D. When an update statement in a pl/sql block has to modify more than one row

Ans: C

2. Which statement about multiple column subquery is true?

A. A pairwiese comparison produces a cross product

B. A nonpairwise comparison produces a cross product

C. In a pairwise subquery, the value return from the subquery is compared individually to the values in the outer query

D. In a nonpairwise subquery, the value return from the subquery is compared grouply to the values in the outer que

Ans: B

3. Examine the code

set serveroutput on

declare

...

begin

...

end;

set serverouput off

This code is stored in a script file myproc.sql, which statement executes

the code in the script file?

A. Myproc.sql

B. RUN Myproc.sql

C. START Myproc.sql

D. EXECUTE Myproc.sql

E. BEGIN Myproc.sql

Ans: C

4. You issued a statement:

CREATE PUBLIC SYNONYM emp

FOR ed.employee

Which task has been accomplished?

a. The object now can be accessed by all users;

b. All users were given object privilege to the table;

c. The need to qualify the object name with its schema was elimilated only for you;

d. The need to qualify the object name with its schema was elimilated for all users.

Ans: D (the real exam a, b ,c, d, said different)

5. Which operator can not be used in nonequel join.

a. IN.

b. Like.

C. Equal operator

d. between...and..

Ans: C

6. select * from emp where id NOT IN ( select manager_id from

.....), which operator is the same as NOT IN.

a. !=

b. !=ALL *

C. NOT LIKE

d. !=ANY

Ans: B

7. Could you update following view?

create or replace view dept_view

as select dept_no, sum(salary) total_sal, count(*)

from emp

group by dept_no

a. Yes

b. No

Ans: B

8. Which select statement display employee names, salaries, department

number who earn more than the average salary in their department.

A, select ename, sal, deptno, AVG(sal)

from emp

group by ename, sal, deptno;

B, select a.ename, a.sal, a.deptno, b.salavg

from emp a, ( select deptno, AVG( sal ) salavg

from emp

group by deptno ) b

where a.deptno = b.deptno and a.sal b.salavg;

C, select outer.ename, outer.sal

outer.deptno, AVG( outer.sal )

from emp outer

group by outer.ename, outer.sal, outer.deptno

having AVG( outer.sal )

( select inner.sal

from emp inner

when inner.deptno = outer.deptno );

D, select outer ename, outer.sal,

outer.deptno, AVG( outer.sal )

from emp outer

Group by outer.ename, outer.sal, outer.deptno

having AVG( outer.sal ) IN

( select inner.sal

from emp inner

where inner.deptno = outer.deptno );

Ans: B

9. What happens if you manually create an index on a foreign key colum?

A. The unique key created on the primary key on the other table is overriden

B.Or the index will reduce the disk I/O for Select/Delete

C.----------

Ans: B

10. Can you rename a column?

A. Rename Column command

B.Alter Table command

C. Can not rename a column, unless using a temporary table

Ans: C

11. How to enable a Primary Key?

a) Alter Table xxx Enable Primary Key (id);

b) Alter Table xxx Enable Constraint xxx Primary Key;

c) Alter Table xxx Enable Primary Key Cascade;

d) Alter Table xxx Enable Primary Key;

Ans: D

12. To load a table with a huge amount of data, disable the Primary Key and

Not Null contraints, then re-enable them after the load. What happens?

a) Unique indexes automatically re-created;

b) Existing rows are validated;

c) Only subsequent insertions to the table are validated;

d) ...

Ans: B

13. In order for newly created user to get access to database, you must grant

'create session' privilege.

14. User_col_constraints only displays constraint names

User_constraints displays both constraint names and constraint type.

15. Declare cursor cursor_name(v_sal) IS

select ename, sal from

emp

where salv_sal;

What is wrong with this one?

a) must define datatype for v_sal

b) can not use where clause in cursor.

Ans: B, I am not sure

16.Try to look through the information about employee Smith, but not

sure the case stored in the database. which statement is correct

A. select lastname, firstname

from emp

where lastname='simth';

B. select lastname, firstname

from emp

where Upper(lastname)='simth';

C. select lastname, firstname

from emp

where Lower(lastname)='simth';

I choose C

17. Create role Inventory

Create role Clerk

Create role Manager

Create user Scott identified by tigger

Grant clerk to Manager

Grant Inventory to Clerk

Grant Invntory to Scott

How many role Scott can access to ?

A. ZERO

B. ONE

C. TWO

D. THREE

Ans: B

18. The structure of the department table is as follows:

Name Null Type

Deptno Not Null Number(2)

Dname Varchar2(14)

Loc Varchar2(13)

Examine the following code:

DECLARE

TYPE dept_record_type is RECORD

(dno number

name Varchar2(20));

dept_rec dept_record_type;

BEGIN

SELECT deptno, dname

INTO dept_rec

FROM dept

WHERE deptno=10;

END;

Which choice displays the name of the selected department?

A. DBMS_OUTPUT.PUT_LINE(name);

B. DBMS_OUTPUT.PUT_LINE(dname);

C. DBMS_OUTPUT.PUT_LINE(dept_rec.dname);

D. DBMS_OUTPUT.PUT_LINE(dept_rec.name);

E. DBMS_OUTPUT.PUT_LINE(dept_rec(name));

I chose D

19. You have been granted update privilege on the last_name column of the

employee table. Which data dictionary view would you query to display

the column the privilege was granted on and the schema that owns the

employee table?

A. ALL_COL_PRIVS_RECD

B. This information cannot be retrieved from a single data dictionary

view.

C. TABLE_PRIVILEGES

D. ALL_OBJECTS

Ans: A. but please check it!

20. You need to update employee salary. If the salary of an employee is less

than $1000, the salary needs to be incremented by 10%.

Use a SQL*Plus sustitution variable to accept the employee NUMBER.

Which PL/SQL block successfully updates the salary?

A. DECLARE

v_sal emp.sal%type;

BEGIN

SELECT sal

INTO V_SAL

FROM EMP

WHERE empno=&&p.empno;

IF(v_sal

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有