问题 问答题

[说明]
某公司拟开发一套小区物业收费管理系统,初步的需求分析结果如下。
(1) 业主信息主要包括:业主编号、姓名、房号、房屋面积、工作单位和联系电话等。房号可唯一标识一条业主信息,且一个房号仅对应一套房屋。一个业主可以有一套或多套的房屋。
(2) 部门信息主要包括:部门号、部门名称、部门负责人和部门电话等。一个员工只能属于一个部门,一个部门只有一位负责人。
(3) 员工信息主要包括:员工号、姓名、出生年月、性别、住址、联系电话、所在部门号、职务和密码等。根据职务不同员工可以有不同的权限,职务为“经理”的员工具有更改(添加、删除和修改)员工表中本部门员工信息的操作权限,职务为“收费”的员工只具有收费的操作权限。
(4) 收费信息包括:房号、业主编号、收费日期、收费类型、数量、收费金额和员工号等。收费类型包括物业费、卫生费、水费和电费,并按月收取,收费标准如表4-38所示。其中:物业费=房屋面积(平方米)×每平方米单价,卫生费=套房数量(套)×每套房单价,水费=用水数量(吨)×每吨水单价,电费=用电数量(度)×每度电单价。


(5) 收费完毕应为业主生成收费单,收费单示例如表4-39所示。


[概念模型设计]


根据需求阶段收集的信息,设计的实体联系图(不完整)如图4-29所示。图4-29中收费员和经理是员工的子实体。


[逻辑结构设计]


根据概念模型设计阶段完成的实体联系图,得出如下关系模式(不完整)。
业主( (1) ,姓名,房屋面积,工作单位,联系电话)
员工( (2) ,姓名,出生年月,性别,住址,联系电话,职务,密码)
部门( (3) ,部门名称,部门电话)
权限(职务,操作权限)
收费标准( (4) )
收费信息( (5) ,收费类型,收费金额,员工号)
1. 请根据图4-29,将逻辑结构设计阶段生成的关系模式中的空缺处(1)~(5)补充完整,然后给出各关系模式的主键和外键。

答案

参考答案:“业主”关系模式属于第二范式(2NF)
问题:当某业主有多套住房时,属性“业主编号,姓名,房屋面积,工作单位,联系电话”等信息在业主关系表中重复存储,存在数据冗余、更新不一致等现象

改错题

单句改错 

下列句子中各有一处错误,请指出并改正(每处限改一词).

1. Hundreds of people crowded in the church for the wedding.                         

2. There remain a certain doubt among the people as to the practical value of the project.                      

3. There is a real danger which the US will not keep its position on the world economic stage if

the bad situation continues to go on.                          

4. Rather than to waste his time in chatting or playing games on the Internet, Bob borrowed lots

of books to read in the summer holidays.                         

5. What she won the champion of the Winter Olympic Games made us excited.                           

6. If you want to study the nature of the universe, first of all, you must get hang of the origin of it.               

7. It is required that every salesgirl should treat customers with a warm and friendly

manner.                 

8. The children mustn't be tired----- they just have covered

two miles.                         

9. Tom, you must make an apology to your mother. I won't have you speak to her like

that.                    

10. The children watched amazing as the fireworks set off and formed all kinds of beautiful

designs in the sky.                              

多项选择题