- 1、本文档共10页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
第一章习题答案
1.1 选择题
1. A 2. C 3. C 4. B 5. C 6. A 7. C 8. B 9. D 10. A 11. D 12. A 13. A
1.2 填空题
数据
数据的逻辑独立性
数据的物理独立性
层次数据模型,网状数据模型,关系数据模型
能按照人们的要求真实地表示和模拟现实世界、容易被人们理解、容易在计算机上实现
实体、记录
属性、字段
码
域
一对一、一对多、多对多
E-R模型
E-R模型
层次模型、网状模型、关系模型
数据操作、完整性约束
矩形、菱形、椭圆形
层次模型、一对多
网状模型
关系模型
关系
外模式、模式、内模式
三级模式、两级映像
外模式、模式、内模式
数据、程序
数据逻辑、数据物理
DBMS(数据库管理系统)、DBA(数据库管理员)
1.4 综合题
2.
(注:各实体的属性省略了)
3.
第二章习题答案
1.1 单项选择题
1. C 2. A 3. B 4. C 5. C 6. D 7. A 8. B
1.2 填空题
集合
2. 能唯一标识一个实体的属性
系编号, 学号,系编号
关系, 元组, 属性
关系模型,关系, 实体, 实体间的联系
投影
1.4 综合题
1. πsno(σcno=’2’(SC))
2. πsno(σcname=’信息系统’(SCCOURSE))
3. πsno,SNAME,SAGE(STUDENT)
第三章习题答案
1.1
select * from jobs
1.2
select emp_id,fname+-+lname as Name from employee
1.3
select emp_id,fname+-+lname as Name,Year(getdate())-Year(hire_date) as worke time from employee order by worke time
2.1
select * from employee where fname like f%
2.2
select * from employee where job_id=11
2.3
select emp_id,fname+-+lname as Name, Year(getdate())-Year(hire_date) as worketime
from employee
where (Year(getdate())-Year(hire_date)) 5
order by worketime
2.4
select * from employee where cast(job_id as integer)=5 and cast(job_id as integer)=8
2.5
select * from employee where fname=Maria
2.6
select * from employee where fname like %sh% or lname like %sh%
3.1
select * from sales where ord_date 1993-1-1
4.1
select distinct bh, zyh from stu_info where
bh in
(
select bh from stu_info
group by (bh)
having count(*)30 and count(*)40
)
order by bh
或者是
select bh,zyh from stu_info
group by zyh,bh
having count(bh)30 and count(bh)40
order by bh
4.2
select * from gban
where bh like 计%
4.3
select * from gfied
where zym like %管理%
4.4
select xh,xm,zym,stu_info.bh,rxsj from stu_info,gfied,gban where nl23
and stu_info.zyh=gfied.zyh and stu_info.bh=gban.bh
4.5
select zyh,count(*) from gban
where xsh=03
group by zyh
第四章习题答案
4.1 单项选择题:
B 2、A 3、C 4、A 5、A 6、C 7、C 8、D 9、B 10、A 11、C(或B,即书上121页例题中from的写法) 12、A 13、C 14、C 15、C
4.2 填空题:
dr
文档评论(0)