目录
一、实习的性质、目的与任务
————————————————————————————— 3
(1)画出实体间的 E-R 图
....................................................................................... 3
(2)利用企业管理器建立数据库及基本表
..................................................................... 3
(3)利用查询分析器或企业管理器建立视图
.................................................................. 3
(4)利用 Transcat—SQL 语句自定义存储过程
............................................................... 3
(5)在查询分析器或企业管理器下用 Transcat—SQL 语句自定义触发器
................................. 3
二、 系统需求分析 ——————————————————————————————
3
2.1、 系统功能需求 ——————————————————————————————————
3
三、 系统总体设计———————————————————————————————
4
1、体系结构设计
.............................................................................................................................................................................................................. 4
2、数据库设计
.................................................................................................................................................................................................................... 4
四、 表的创建—————————————————————————————————
6
(1)、入住登记表
........................................................................................................................................................................................................... 6
(2)、员工信息表
........................................................................................................................................................................................................... 6
(3)、客户表
...................................................................................................................................................................................................................... 7
(4)、岗位表
...................................................................................................................................................................................................................... 7
(5)、客房表
...................................................................................................................................................................................................................... 7
(6)、工资表
...................................................................................................................................................................................................................... 8
五、 结果数据处理
———————————————————————————————————
8
1 、连接查询
...................................................................................................................................................................................................................... 8
2、嵌套查询
....................................................................................................................................................................................................................... 11
3、创建查询视图
............................................................................................................................................................................................................ 12
4、建立索引
....................................................................................................................................................................................................................... 13
5、 建立存储过程
......................................................................................................................................................................................................... 14
6、建立触发器
.................................................................................................................................................................................................................. 20
六、 结束语—————————————————————————————————
22
2