《数据库原理(双语)》试卷
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
密
封
线
姓名
考试日期
5807605040
学号
课程号
教学班 数据库原理(双语) 2007 年级 课程名称
专业
1. We can define (定义) a relation schema(关系模式) R(A1, A2, A3) where A1 is
the primary key (主键) and A3 is a foreign key (外键) that refers to(参考) R 。
( )
2. A constraint(约束) is a rule in a database system that can be violated(违反) by
users. ( )
3. The E —R model is used to construct (构建) a conceptual model (概念模型)。
( )
4. The entity integrity rule(实体完整性规则)states that a primary key attribute can be
null 。
( ) 5。
The attribute value in a tuple (元组) that makes up(组成) a foreign key (外
键) can be null. ( ) 6。
A composite key (复合键) consists of only one attribute. ( )
7. One property (特征) of a relation is that each attribute within a relation has a
unique (唯一的) name. ( )
8. The columns of a relation can be interchanged (交换) without changing the
meaning or use of the relation 。
( )
9. The DELETE SQL command is used to remove (去掉) a table from the database.
( )
10。
Subqueries (子查询) can only be used in the WHERE clause 。
( )
三、操作题(每题3分,共15分)
现有关系数据库模式如下:
学生(学号,姓名,性别,专业,年龄) 课程(课程号,名称,学分) 学习(学号,课程号,分数)
用关系代数表达式实现1—2小题,用T-SQL 语言实现3-5小题。
1. 查询“学生”关系学生中都有哪些专业。
密
封
线
姓名
考试日期
5807605040
学号
课程号
教学班
数据库原理(双语) 2007 年级 课程名称
专业
(2)将该E —R 图转换为等价的符合第3范式(3NF )的关系模式,分别指出每个关系的主键和外键,并画出各关系间的主键、外键参照(注意:关系模式的表示规范请参照下图;关系和属性名称均用中文表示).。